diff options
author | Christoph Hellwig <hch@lst.de> | 2021-01-09 13:42:54 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-01-25 04:15:57 +0300 |
commit | d11cd28998e9d25389d8c20e7cce0e4b4f17bee1 (patch) | |
tree | cefec5c99d3e3d0b3fce3227d6c7a2a66321c33a /drivers/md/bcache/request.c | |
parent | cbf72cce6370b3ec1a6073cf777ab9b6ba5bf5b9 (diff) | |
download | linux-d11cd28998e9d25389d8c20e7cce0e4b4f17bee1.tar.xz |
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>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/bcache/request.c')
0 files changed, 0 insertions, 0 deletions