diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nvme.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index 562d75a0fc50..45bfae1ebd50 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -156,7 +156,7 @@ static struct nvme_cmd_info *nvme_cmd_info(struct nvme_queue *nvmeq) | |||
156 | static int alloc_cmdid(struct nvme_queue *nvmeq, void *ctx, int handler, | 156 | static int alloc_cmdid(struct nvme_queue *nvmeq, void *ctx, int handler, |
157 | unsigned timeout) | 157 | unsigned timeout) |
158 | { | 158 | { |
159 | int depth = nvmeq->q_depth; | 159 | int depth = nvmeq->q_depth - 1; |
160 | struct nvme_cmd_info *info = nvme_cmd_info(nvmeq); | 160 | struct nvme_cmd_info *info = nvme_cmd_info(nvmeq); |
161 | int cmdid; | 161 | int cmdid; |
162 | 162 | ||