diff options
author | Sagi Grimberg | 2017-06-18 15:15:59 +0200 |
---|---|---|
committer | Jens Axboe | 2017-06-28 16:14:13 +0200 |
commit | 7aa1f42752f0d31a5bb6d0d5bac92fc8c2044ce2 (patch) | |
tree | 7b15db4035fa5b796737025efb48efd4aa00e216 /drivers/nvme/host/fabrics.c | |
parent | nvme: add hostid token to fabric options (diff) | |
download | kernel-qcow2-linux-7aa1f42752f0d31a5bb6d0d5bac92fc8c2044ce2.tar.gz kernel-qcow2-linux-7aa1f42752f0d31a5bb6d0d5bac92fc8c2044ce2.tar.xz kernel-qcow2-linux-7aa1f42752f0d31a5bb6d0d5bac92fc8c2044ce2.zip |
nvme: use a single NVME_AQ_DEPTH and relax it to 32
No need to differentiate fabrics from pci/loop, also lower
it to 32 as we don't really need 256 inflight admin commands.
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/fabrics.c')
-rw-r--r-- | drivers/nvme/host/fabrics.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c index 7ca2d4d70aec..a59a243b81c6 100644 --- a/drivers/nvme/host/fabrics.c +++ b/drivers/nvme/host/fabrics.c @@ -392,13 +392,7 @@ int nvmf_connect_admin_queue(struct nvme_ctrl *ctrl) cmd.connect.opcode = nvme_fabrics_command; cmd.connect.fctype = nvme_fabrics_type_connect; cmd.connect.qid = 0; - - /* - * fabrics spec sets a minimum of depth 32 for admin queue, - * so set the queue with this depth always until - * justification otherwise. - */ - cmd.connect.sqsize = cpu_to_le16(NVMF_AQ_DEPTH - 1); + cmd.connect.sqsize = cpu_to_le16(NVME_AQ_DEPTH - 1); /* * Set keep-alive timeout in seconds granularity (ms * 1000) |