blk-mq: make ->flush_rq fully transparent to drivers
authorChristoph Hellwig <hch@lst.de>
Mon, 14 Apr 2014 08:30:08 +0000 (10:30 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 15 Apr 2014 20:03:02 +0000 (14:03 -0600)
commit8727af4b9d45c7503042e3fbd926c1a173876e9c
treee6f2d8b7d9808cfbfb0b67a088b182776518a797
parent9d74e25737d73e93ccddeb5a61bcd56b7b8eb57b
blk-mq: make ->flush_rq fully transparent to drivers

Drivers shouldn't have to care about the block layer setting aside a
request to implement the flush state machine.  We already override the
mq context and tag to make it more transparent, but so far haven't deal
with the driver private data in the request.  Make sure to override this
as well, and while we're at it add a proper helper sitting in blk-mq.c
that implements the full impersonation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-flush.c
block/blk-mq.c
block/blk-mq.h