]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite4c6959f25025c19072502c08b7686db0eecbeaf
treee6f2d8b7d9808cfbfb0b67a088b182776518a797
parent731a4bb2f87fd73fbbd97d9a02b95df82ee36953
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