summaryrefslogtreecommitdiffstats
path: root/drivers/block/nvme.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/nvme.c')
-rw-r--r--drivers/block/nvme.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c
index cf89db8c41ee..8d3c0b79ac2b 100644
--- a/drivers/block/nvme.c
+++ b/drivers/block/nvme.c
@@ -1162,6 +1162,9 @@ static void nvme_resubmit_bios(struct nvme_queue *nvmeq)
bio_list_add_head(&nvmeq->sq_cong, bio);
break;
}
+ if (bio_list_empty(&nvmeq->sq_cong))
+ remove_wait_queue(&nvmeq->sq_full,
+ &nvmeq->sq_cong_wait);
}
}