blk-mq: blk_mq_tag_to_rq should handle flush request
authorShaohua Li <shli@kernel.org>
Fri, 30 May 2014 14:06:42 +0000 (08:06 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:50 +0000 (12:54 -0600)
commit388e726acc5208ec2eb1193208d6fa68ee38118b
tree233ae7241822dd90a63b99841dbfd4472d40d777
parent9b04028aa7f00ca6f3e96c03f1beeb90462b2faf
blk-mq: blk_mq_tag_to_rq should handle flush request

flush request is special, which borrows the tag from the parent
request. Hence blk_mq_tag_to_rq needs special handling to return
the flush request from the tag.

Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-flush.c
block/blk-mq.c
include/linux/blk-mq.h