diff options
author | Shaohua Li <shli@fb.com> | 2015-05-01 19:59:44 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-05-04 22:09:55 +0300 |
commit | b2387ddcced8de3e6471a2fb16a409577063016f (patch) | |
tree | bd13a1c05ec6b788aab5d53f855b64adeb1a9fdd /block/blk-mq.c | |
parent | 6cd18e711dd8075da9d78cfc1239f912ff28968a (diff) | |
download | linux-b2387ddcced8de3e6471a2fb16a409577063016f.tar.xz |
blk-mq: fix FUA request hang
When a FUA request enters its DATA stage of flush pipeline, the
request is added to mq requeue list, the request will then be added to
ctx->rq_list. blk_mq_attempt_merge() might merge the request with a bio.
Later when the request is finished the flush pipeline, the
request->__data_len is 0. Then I only saw the bio gets endio called, the
original request never finish.
Adding REQ_FLUSH_SEQ into REQ_NOMERGE_FLAGS looks an easy fix.
stable: 3.15+
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
0 files changed, 0 insertions, 0 deletions