Files
linux/drivers/block
Ilya Dryomov 1de797bb24 rbd: fix and simplify rbd_ioctl_set_ro()
->open_count/-EBUSY check is bogus and wrong: when an open device is
set read-only, blkdev_write_iter() refuses further writes with -EPERM.
This is standard behaviour and all other block devices allow this.

set_disk_ro() call is also problematic: we affect the entire device
when called on a single partition.

All rbd_ioctl_set_ro() needs to do is refuse ro -> rw transition for
mapped snapshots.  Everything else can be handled by generic code.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-11-13 12:11:41 +01:00
..
2017-09-25 08:56:05 -06:00
2017-02-20 12:16:15 +01:00
2017-11-13 12:11:41 +01:00
2017-10-09 08:31:27 -06:00
2017-08-18 08:45:29 -06:00