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)
committerKeith Busch <kbusch@kernel.org>
Wed, 17 May 2023 14:32:42 +0000 (07:32 -0700)
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>
drivers/nvme/host/multipath.c

index fc39d01e7b63be8a4f9e794f915715cbc2c8609b..187c9de0d6d5a7ef0b2698962488b03fbf0fcaa8 100644 (file)
@@ -884,7 +884,6 @@ void nvme_mpath_remove_disk(struct nvme_ns_head *head)
 {
        if (!head->disk)
                return;
-       blk_mark_disk_dead(head->disk);
        /* make sure all pending bios are cleaned up */
        kblockd_schedule_work(&head->requeue_work);
        flush_work(&head->requeue_work);