[PATCH] nvme: revert commit 1293477f4f32 as it is breaking BLKROSET
Christoph Hellwig
hch at lst.de
Mon Nov 9 03:52:21 EST 2020
On Fri, Nov 06, 2020 at 11:02:28AM -0800, Sagi Grimberg wrote:
>> Just dropping the else part is probably enough for now, although
>> as a follow on we should probably add a "hard read-only" state to
>> the block layer.
>
> Removing the else would have an incorrect behavior. I think its better
> to not support it (until we support it correctly) than to support it
> incorrectly.
I strongly disagree. When we see a write protected namespaces doing a
set_disk_ro is the right thing to do to prevent folks from writing to
it and getting bogged up in tons of warnings. I think that use case
is much more important than the corner case of clearing it later.
More information about the Linux-nvme
mailing list