nvme-multipath: don't call blk_mark_disk_dead in nvme_mpath_remove_disk
authorChristoph Hellwig <hch@lst.de>
Wed, 17 May 2023 07:53:45 +0000 (09:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2023 08:34:15 +0000 (10:34 +0200)
commitf481c2af49169d4db27c54350fd8aa007458e3ee
tree33ecf4ba882f7f44bb6d6213648a794b383cba32
parentd0013470677f3e907ccdbb10ee4a4dce5156358a
nvme-multipath: don't call blk_mark_disk_dead in nvme_mpath_remove_disk

[ Upstream commit 1743e5f6000901a11f4e1cd741bfa9136f3ec9b1 ]

nvme_mpath_remove_disk is called after del_gendisk, at which point a
blk_mark_disk_dead call doesn't make any sense.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/multipath.c