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>
Mon, 30 Mar 2015 18:54:44 +0000 (12:54 -0600)
commitef8026be346c8b809f209a04145a892240a570cc
treebe7d163b043708a808dc1900a35fa2d5dd7b091e
parent354b6d9acadebf3fc862e4d3dc9f30f6cf0a4a26
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