mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
NVMe: Reduce maximum queue depth by 1
The spec says we're not allowed to completely fill the submission queue. Solve this by reducing the number of allocatable cmdids by 1. Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
This commit is contained in:
parent
d8ee9d69f2
commit
e6d15f79f9
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ static struct nvme_cmd_info *nvme_cmd_info(struct nvme_queue *nvmeq)
|
|||
static int alloc_cmdid(struct nvme_queue *nvmeq, void *ctx, int handler,
|
||||
unsigned timeout)
|
||||
{
|
||||
int depth = nvmeq->q_depth;
|
||||
int depth = nvmeq->q_depth - 1;
|
||||
struct nvme_cmd_info *info = nvme_cmd_info(nvmeq);
|
||||
int cmdid;
|
||||
|
||||
|
|
Loading…
Reference in a new issue