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

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Mon Feb 1 19:13:47 EST 2021


On 2/1/21 09:28, Christoph Hellwig 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.
>
Okay.



More information about the Linux-nvme mailing list