Skip to content

Commit 1743e5f

Browse files
Christoph Hellwigkeithbusch
authored andcommitted
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 <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 3710e2b commit 1743e5f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/nvme/host/multipath.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,6 @@ void nvme_mpath_remove_disk(struct nvme_ns_head *head)
884884
{
885885
if (!head->disk)
886886
return;
887-
blk_mark_disk_dead(head->disk);
888887
/* make sure all pending bios are cleaned up */
889888
kblockd_schedule_work(&head->requeue_work);
890889
flush_work(&head->requeue_work);

0 commit comments

Comments
 (0)