block: add a blk_steal_bios helper
authorChristoph Hellwig <hch@lst.de>
Thu, 2 Nov 2017 18:29:51 +0000 (21:29 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Nov 2017 16:31:48 +0000 (10:31 -0600)
commitef71de8b15d891b27b8c983a9a8972b11cb4576a
tree8fd5ab57df5aa233aeb784d12a6533e696d9df51
parentf421e1d9ade4e1b88183e54425cf50e390d16a7f
block: add a blk_steal_bios helper

This helpers allows to bounce steal the uncompleted bios from a request so
that they can be reissued on another path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/blkdev.h