diff options
-rw-r--r-- | drivers/block/nvme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index 843edbd79c56..f5e51a6116e3 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -325,6 +325,8 @@ static void bio_completion(struct nvme_queue *nvmeq, void *ctx, | |||
325 | if (status) { | 325 | if (status) { |
326 | bio_endio(bio, -EIO); | 326 | bio_endio(bio, -EIO); |
327 | } else if (bio->bi_vcnt > bio->bi_idx) { | 327 | } else if (bio->bi_vcnt > bio->bi_idx) { |
328 | if (bio_list_empty(&nvmeq->sq_cong)) | ||
329 | add_wait_queue(&nvmeq->sq_full, &nvmeq->sq_cong_wait); | ||
328 | bio_list_add(&nvmeq->sq_cong, bio); | 330 | bio_list_add(&nvmeq->sq_cong, bio); |
329 | wake_up_process(nvme_thread); | 331 | wake_up_process(nvme_thread); |
330 | } else { | 332 | } else { |