Christoph Hellwig 2a0f8202f7 block: add a new set_read_only method
[ Upstream commit e00adcadf3af7a8335026d71ab9f0e0a922191ac ]

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>
Stable-dep-of: 9674f54e41ff ("md: Don't clear MD_CLOSING when the raid is about to stop")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:21:48 -04:00
..
2020-08-18 07:48:08 -07:00
2020-10-13 12:12:44 -07:00
2020-03-17 20:55:21 +01:00
2020-09-23 09:18:13 -06:00
2024-03-26 18:21:48 -04:00
2020-10-13 13:04:41 -07:00
2020-01-06 20:59:04 -07:00