]> www.infradead.org Git - users/hch/block.git/commit
block: add a new set_read_only method
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 11:00:52 +0000 (12:00 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 3 Nov 2020 09:29:59 +0000 (10:29 +0100)
commitf0fa5db24fc7916935f2c08dda3ac436dae2a5c4
tree3de46a8436e569eab5655004cd3f6221d53fa39f
parent3c21a1e0c01132c97d870b9971693192d12fbf53
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>
block/ioctl.c
include/linux/blkdev.h