diff options
author | 2021-03-15 15:34:51 -0700 | |
---|---|---|
committer | 2021-03-18 05:39:02 +0100 | |
commit | d218a8a3003e84ab136e69a4e30dd4ec7dab2d22 (patch) | |
tree | 545ce90ce1854d239f5797a256b22c5a3d04b1f9 /drivers/usb/cdns3/cdns3-imx.c | |
parent | nvme-rdma: fix possible hang when failing to set io queues (diff) | |
download | linux-dev-d218a8a3003e84ab136e69a4e30dd4ec7dab2d22.tar.xz linux-dev-d218a8a3003e84ab136e69a4e30dd4ec7dab2d22.zip |
nvmet: don't check iosqes,iocqes for discovery controllers
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 perform this check for I/O controllers.
Fixes: a07b4970f464 ("nvmet: add a generic NVMe target")
Reported-by: Belanger, Martin <Martin.Belanger@dell.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions