[RHEL7,COMMIT] Revert "blk-mq: fail the request in case issue failure"

Submitted by Konstantin Khorenko on June 6, 2019, 12:07 p.m.

Details

Message ID 201906061207.x56C7NFt015544@finist-ce7.sw.ru
State New
Headers show

Patch hide | download patch | download mbox

diff --git a/block/blk-mq.c b/block/blk-mq.c
index 3dd6f1d72cee..ab36454564be 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1788,12 +1788,8 @@  void blk_mq_try_issue_list_directly(struct blk_mq_hw_ctx *hctx,
 		list_del_init(&rq->queuelist);
 		ret = blk_mq_request_issue_directly(rq);
 		if (ret != BLK_MQ_RQ_QUEUE_OK) {
-			if (ret == BLK_MQ_RQ_QUEUE_BUSY ||
-					ret == BLK_MQ_RQ_QUEUE_DEV_BUSY) {
-				list_add(&rq->queuelist, list);
-				break;
-			}
-			blk_mq_end_request(rq, ret);
+			list_add(&rq->queuelist, list);
+			break;
 		}
 	}
 }