diff options
author | Alex Shi <alex.shi@linaro.org> | 2017-01-09 12:01:31 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2017-01-09 12:01:31 +0800 |
commit | eaa88578f2135fa8548d5f127259904a1b3f44c0 (patch) | |
tree | 18891deaea2a586e0ee370af189f0f2613b654a9 /block | |
parent | 6381499f5898ef4144b1522cf35caab69d4d95eb (diff) | |
parent | a3edc7b2e537e36bb26c94fa9efcc249ef3a5862 (diff) |
Merge tag 'v4.4.40' into linux-linaro-lsk-v4.4
This is the 4.4.40 stable release
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index c3e461ec40e4..9f99a01b00e8 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1313,9 +1313,9 @@ static blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio) blk_mq_put_ctx(data.ctx); if (!old_rq) goto done; - if (!blk_mq_direct_issue_request(old_rq, &cookie)) - goto done; - blk_mq_insert_request(old_rq, false, true, true); + if (test_bit(BLK_MQ_S_STOPPED, &data.hctx->state) || + blk_mq_direct_issue_request(old_rq, &cookie) != 0) + blk_mq_insert_request(old_rq, false, true, true); goto done; } |