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>
Mon, 30 Mar 2015 18:54:51 +0000 (12:54 -0600)
commitf6fee65242edfbd7afb7671a22b7b9a3fca2feba
treedefc90198f00dac7f664a48d70ac12217b0e1b05
parent8cf073133b24c9806c271719a7f5594b8dc7ec20
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