]> git.baikalelectronics.ru Git - kernel.git/commit
block: add a new set_read_only method
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Nov 2020 10:00:11 +0000 (11:00 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:29 +0000 (08:14 -0700)
commit57c055d94febcacdb27acd0309bfe142f7683c73
tree7d7f22326e387ef08b23cf9a3a76e6f16fc1b089
parent5ef3e7ecf71cd9a5d730750ec0c6283c0eaaf3e9
block: add a new set_read_only method

Add a new method to allow for driver-specific processing when setting or
clearing the block device read-only state.  This allows to replace the
cumbersome and error-prone override of the whole ioctl implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/ioctl.c
include/linux/blkdev.h