From: Christoph Hellwig Date: Fri, 5 May 2023 12:52:19 +0000 (-0400) Subject: nvme-multipath: don't call blk_mark_disk_dead in nvme_mpath_remove_disk X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4878b51c45aeebf47fffe4244e8aa8e23a7b587a;p=users%2Fhch%2Fblock.git nvme-multipath: don't call blk_mark_disk_dead in nvme_mpath_remove_disk 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 --- diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c index 9171452e2f6d..2bc159a318ff 100644 --- a/drivers/nvme/host/multipath.c +++ b/drivers/nvme/host/multipath.c @@ -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);