diff options
author | Christoph Hellwig <hch@lst.de> | 2022-11-01 16:00:39 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-02 08:35:34 -0600 |
commit | 23a908647efade186576c9628dd7bb560f6e759b (patch) | |
tree | da651cc029607e4b148da06f8a99cb495fb27efd /drivers/nvme | |
parent | 0ffc7e98bfaa45380b800deeb9b65ce0371c652d (diff) | |
download | linux-stable-23a908647efade186576c9628dd7bb560f6e759b.tar.gz linux-stable-23a908647efade186576c9628dd7bb560f6e759b.tar.bz2 linux-stable-23a908647efade186576c9628dd7bb560f6e759b.zip |
nvme: don't remove namespaces in nvme_passthru_end
The call to nvme_remove_invalid_namespaces made sense when
nvme_passthru_end revalidated all namespaces and had to remove those that
didn't exist any more. Since we don't revalidate from nvme_passthru_end
now, this call is entirely spurious.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20221101150050.3510-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index aea0f89acf40..35386aa24f58 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1118,7 +1118,6 @@ void nvme_passthru_end(struct nvme_ctrl *ctrl, u32 effects, nvme_unfreeze(ctrl); nvme_mpath_unfreeze(ctrl->subsys); mutex_unlock(&ctrl->subsys->lock); - nvme_remove_invalid_namespaces(ctrl, NVME_NSID_ALL); mutex_unlock(&ctrl->scan_lock); } if (effects & NVME_CMD_EFFECTS_CCC) |