Skip to content
Snippets Groups Projects
Commit 2a0f8202 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Sasha Levin
Browse files

block: add a new set_read_only method


[ Upstream commit e00adcad ]

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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Stable-dep-of: 9674f54e ("md: Don't clear MD_CLOSING when the raid is about to stop")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a0bccba5
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment