]> git.baikalelectronics.ru Git - kernel.git/commit
block: add a bdev_fua helper
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:44 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:59 +0000 (19:49 -0600)
commit6e3d05d09ba29934d7d8c6c2285fe08c8652a469
treea16d28d2a576fbaba4934f21b163c1fc7c61f118
parent6673ebc5a222eabba92bb36218c9c06acfbf51f4
block: add a bdev_fua helper

Add a helper to check the FUA flag based on the block_device instead of
having to poke into the block layer internal request_queue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-14-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-srv.c
drivers/target/target_core_iblock.c
fs/iomap/direct-io.c
include/linux/blkdev.h