]> www.infradead.org Git - users/hch/block.git/commit
nvme: allow revalidate to set a namespace read-only
authorChristoph Hellwig <hch@lst.de>
Sat, 5 Dec 2020 09:04:33 +0000 (10:04 +0100)
committerChristoph Hellwig <hch@lst.de>
Sat, 23 Jan 2021 17:38:22 +0000 (18:38 +0100)
commit4a39b1a6a7c59a9afb426fbd969a418b60440c4b
tree6c36af7caff803b1c658f9dda25f471ff07f6c44
parent22ad3652e38a99413fc492b8c6fd7153f6327576
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