Skip to contentSkip to conversation

nvme-multipath: don't call blk_mark_disk_dead in nvme_mpath_remove_disk

PATCH Applied Christoph Hellwig 3 participants 4 messages May 17, 2023 NVMe

lore
Share & tools
lore

Christoph Hellwig

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 drivers/nvme/host/multipath.c | 1 -
 1 file changed, 1 deletion(-)
drivers/nvme/host/multipath.c +0 -1
index 9171452e2f6d4e..2bc159a318ff0a 100644
@@ -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);
Signature · 1 line
2.39.2