Re: [PATCH] blk-mq: fix FUA request hang

2015-05-04 Thread Jens Axboe
On 05/01/2015 10:59 AM, Shaohua Li wrote: 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 pi

[PATCH] blk-mq: fix FUA request hang

2015-05-01 Thread Shaohua Li
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