[PATCH] nvme: do not ignore nvme status in nvme_set_queue_count()

Keith Busch kbusch at kernel.org
Thu Jan 21 15:14:59 EST 2021


On Thu, Jan 21, 2021 at 10:50:21AM +0100, Hannes Reinecke wrote:
> If the call to nvme_set_queue_count() fails with a status we should
> not ignore it but rather pass it on to the caller.
> It's then up to the transport to decide whether to ignore it
> (like PCI does) or to reset the connection (as would be appropriate
> for fabrics).

Instead of checking the error, wouldn't checking the number of created
queues be sufficient? What handling difference do you expect to occur
between getting a success with 0 queues, vs getting an error?



More information about the Linux-nvme mailing list