[PATCH] nvmet: don't check iosqes,iocqes for discovery controllers

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Tue Mar 16 03:38:23 GMT 2021


On 3/15/21 15:34, Sagi Grimberg wrote:
> From the base spec, Figure 78:
> "Controller Configuration, these fields are defined as parameters to
> configure an "I/O Controller (IOC)" and not to configure a "Discovery
> Controller (DC)".
> ...
> "If the controller does not support I/O queues, then this field shall
> be read-only with a value of 0h"
>
> Just have this check for I/O controllers.
>
> Fixes: a07b4970f464 ("nvmet: add a generic NVMe target")
> Reported-by: Belanger, Martin <Martin.Belanger at dell.com>
> Signed-off-by: Sagi Grimberg <sagi at grimberg.me>

Looks good.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>





More information about the Linux-nvme mailing list