[PATCH 04/10] nvmet: remove nsid param from nvmet_find_namespace()

Christoph Hellwig hch at lst.de
Mon Feb 1 12:28:10 EST 2021


On Sun, Jan 31, 2021 at 09:41:32PM -0800, Chaitanya Kulkarni wrote:
> The nvmet_find_namespace() takes nsid parameter which is from NVMe
> commands structures such as get_log_page, identify, rw and common. All
> these commands have same offset for the nsid field.
> 
> Derive nsid from req (req->cmd->common.nsid) and remove the extra
> parameter from the nvmet_find_namespace().

I'd merge this into the previous one as that totally changes the
calling conventions anyway.  Otherwise this looks good to me.



More information about the Linux-nvme mailing list