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

2021-01-10 Thread Hannes Reinecke
On 1/9/21 11:42 AM, 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 Reviewed-b

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

2021-01-09 Thread Chaitanya Kulkarni
On 1/9/21 02:49, 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 > Revi

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

2021-01-09 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 Reviewed-by: Keith Busch Reviewed-by: Martin K. Petersen

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

2020-12-09 Thread Keith Busch
On Mon, Dec 07, 2020 at 02:19:18PM +0100, 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:

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

2020-12-08 Thread Ming Lei
On Tue, Dec 08, 2020 at 05:28:29PM +0100, 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:

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

2020-12-08 Thread Hannes Reinecke
On 12/8/20 5:28 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 Reviewed-b

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

2020-12-08 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 Reviewed-by: Keith Busch Reviewed-by: Martin K. Petersen

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

2020-12-07 Thread Martin K. Petersen
Christoph, > 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. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Li

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

2020-12-07 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 | 5 ++--- 1 file changed,