]> git.ipfire.org Git - thirdparty/linux.git/commit
rbd: don't assert on writes to snapshots
authorIlya Dryomov <idryomov@gmail.com>
Fri, 3 May 2019 15:27:03 +0000 (17:27 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 7 May 2019 17:43:04 +0000 (19:43 +0200)
commitb91a7bdca4439e286f26cdd6c15ed338e6a9fda2
tree42d2f711a43e483b30a68dac8e23bac1af3a94a9
parenta32e414325c2f0d430436e4708a33c756b082fd8
rbd: don't assert on writes to snapshots

The check added in commit 721c7fc701c7 ("block: fail op_is_write()
requests to read-only partitions") was lifted in commit a32e236eb93e
("Partially revert "block: fail op_is_write() requests to read-only
partitions"").  Basic things like user triggered writes and discards
are still caught, but internal kernel users can submit anything.  In
particular, ext4 will attempt to write to the superblock if it detects
errors in the filesystem, even if the filesystem is mounted read-only
on a read-only partition.

The assert is overkill regardless.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c