[PATCH] nvme: consolidate synchronous command submission helpers
Christoph Hellwig
hch at lst.de
Fri Apr 17 11:13:54 PDT 2015
On Fri, Apr 17, 2015 at 06:12:19PM +0000, Keith Busch wrote:
>> int nvme_set_features(struct nvme_dev *dev, unsigned fid, unsigned dword11,
>> @@ -1189,7 +1162,7 @@ int nvme_set_features(struct nvme_dev *dev, unsigned fid, unsigned dword11,
>> c.features.fid = cpu_to_le32(fid);
>> c.features.dword11 = cpu_to_le32(dword11);
>>
>> - return nvme_submit_admin_cmd(dev, &c, result);
>> + return nvme_submit_sync_cmd(dev->admin_q, &c, NULL);
>> }
>
> Probably a copy-paste error, but setting the result field to NULL means
> initialization won't obtain the proper i/o queue count. The same thing
> was done in the nvme_get_features().
Oops. I actually did run into that problem during testing, but for some
reason still sent the old version. I'll resend the proper one ASAP..
More information about the Linux-nvme
mailing list