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

Add a helper to check the write cache 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>
Acked-by: David Sterba <dsterba@suse.com> [btrfs]
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/rnbd/rnbd-srv.c
drivers/block/xen-blkback/xenbus.c
drivers/target/target_core_iblock.c
fs/btrfs/disk-io.c
include/linux/blkdev.h