nvme: don't call nvme_init_ctrl_finish from nvme_passthru_end
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Nov 2022 14:46:45 +0000 (15:46 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 15 Nov 2022 09:55:49 +0000 (10:55 +0100)
commit1e37a307f1481058da852accb37e0e1a3e137e9e
treeeb6a4ed8ea6e8ea45afefd1ef406a27dcfa3ed84
parent1b96f862ecccb3e6f950eba584bebf22955cecc5
nvme: don't call nvme_init_ctrl_finish from nvme_passthru_end

nvme_passthrough_end can race with a reset, which can lead to
racing stores to the cels xarray as well as further shengians
with upcoming more complicated initialization.

So drop the call and just log that the controller capabilities
might have changed and a reset could be required to use the new
controller capabilities.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Tested-by Gerd Bayer <gbayer@linxu.ibm.com>
drivers/nvme/host/core.c