diff options
| author | Christoph Hellwig <[email protected]> | 2021-01-09 10:42:54 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-01-25 01:15:57 +0000 |
| commit | d11cd28998e9d25389d8c20e7cce0e4b4f17bee1 (patch) | |
| tree | cefec5c99d3e3d0b3fce3227d6c7a2a66321c33a /drivers/lightnvm/pblk-init.c | |
| parent | rbd: remove the ->set_read_only method (diff) | |
| download | kernel-d11cd28998e9d25389d8c20e7cce0e4b4f17bee1.tar.gz kernel-d11cd28998e9d25389d8c20e7cce0e4b4f17bee1.zip | |
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 <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Reviewed-by: Martin K. Petersen <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/lightnvm/pblk-init.c')
0 files changed, 0 insertions, 0 deletions
