block: pass failfast and driver-specific flags to flush requests
authorHannes Reinecke <hare@suse.de>
Wed, 6 Jun 2018 14:21:40 +0000 (16:21 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 6 Jun 2018 14:36:03 +0000 (08:36 -0600)
commit84fca1b0c461e741268fe947f641296c0d963a56
treec945248ad034ddedf55e95dbb6c25fdf58a1560a
parent07ce213f63fbc389c8fcaefab6267b3bc0a12796
block: pass failfast and driver-specific flags to flush requests

If flush requests are being sent to the device we need to inherit the
failfast and driver-specific flags, too, otherwise I/O will fail.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-flush.c