Re: [dm-devel] [PATCH 3/4] nvme: allow revalidate to set a namespace read-only

2020-11-29 Thread Hannes Reinecke
On 11/29/20 7:19 PM, Christoph Hellwig wrote: 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 --- dri

Re: [dm-devel] [PATCH 3/4] nvme: allow revalidate to set a namespace read-only

2020-11-29 Thread Chaitanya Kulkarni
On 11/29/20 10:22, Christoph Hellwig wrote: > 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 Loo

[dm-devel] [PATCH 3/4] nvme: allow revalidate to set a namespace read-only

2020-11-29 Thread Christoph Hellwig
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 --- drivers/nvme/host/core.c | 3 +-- 1 file changed, 1