diff options
author | Shaohua Li <shli@fb.com> | 2015-05-08 19:51:31 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-05-08 22:17:19 +0200 |
commit | 239ad215f0d8388cbe6c09a0fab8ad8ff5dba420 (patch) | |
tree | d1525efb74bed517f68017891a0f2ed6bae60bea /block/blk-mq.c | |
parent | blk-mq: fix plugging in blk_sq_make_request (diff) | |
download | linux-239ad215f0d8388cbe6c09a0fab8ad8ff5dba420.tar.xz linux-239ad215f0d8388cbe6c09a0fab8ad8ff5dba420.zip |
blk-mq: avoid re-initialize request which is failed in direct dispatch
If we directly issue a request and it fails, we use
blk_mq_merge_queue_io(). But we already assigned bio to a request in
blk_mq_bio_to_request. blk_mq_merge_queue_io shouldn't run
blk_mq_bio_to_request again.
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index a65acffde19a..f13d0de42f53 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1284,6 +1284,8 @@ static void blk_mq_make_request(struct request_queue *q, struct bio *bio) blk_mq_end_request(rq, rq->errors); goto done; } + blk_mq_insert_request(rq, false, true, true); + return; } } |