On Tue, 7 Nov 2017 17:56:51 +0100, Ilya Dryomov wrote: > Heh, apparently I only tested writes and didn't do discards... Writes > go through blkdev_write_iter() but zeroout/discards seem to rely solely > on FMODE_WRITE checks, which the block layer doesn't enforce. > > I'd rather try to fix it in the block layer before working around it in > krbd. I'll work up a patch tomorrow. FWIW I've pushed a blktests regression test for this to the wip_ro_get_set_discard branch of my repo at: https://github.com/ddiss/blktests.git Cheers, David -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html