block: mq flush: clear flush_rq's tag in flush_end_io()
authorMing Lei <tom.leiming@gmail.com>
Wed, 4 Jun 2014 16:23:55 +0000 (00:23 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 4 Jun 2014 16:40:16 +0000 (10:40 -0600)
commit14b83e172f0bc83b8dcf78ee8b1844beeffb418d
tree3695014cf1ecadfaba613ed6d5e6be39b6788d68
parent0e62f51f8753b048f391ee2d7f2af1f7297b0be5
block: mq flush: clear flush_rq's tag in flush_end_io()

blk_mq_tag_to_rq() needs to be able to tell if it should return
the original request, or the flush request if we are doing a flush
sequence. Clear the flush tag when IO completes for a flush, since
that is what we are comparing against.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-flush.c