]> www.infradead.org Git - users/hch/block.git/commit
nvme: allow revalidate to set a namespace read-only block-hard-ro
authorChristoph Hellwig <hch@lst.de>
Sat, 5 Dec 2020 09:04:33 +0000 (10:04 +0100)
committerChristoph Hellwig <hch@lst.de>
Sat, 9 Jan 2021 09:13:11 +0000 (10:13 +0100)
commit0a7471748cc98880f335a6af77472bc4055dddbf
tree8e5567386f440c96d38a34abe53d0cd7d7ec0238
parent6cbda6cab2706f10c27c916f61142c3bffa73373
nvme: allow revalidate to set a namespace read-only

Unconditionally call set_disk_ro now that it only updates the hardware
state.  This allows to properly set up the Linux devices read-only when
the controller turns a previously writable namespace read-only.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c