Patch "nvme-multipath: system fails to create generic nvme device" has been added to the 6.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    nvme-multipath: system fails to create generic nvme device

to the 6.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     nvme-multipath-system-fails-to-create-generic-nvme-d.patch
and it can be found in the queue-6.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 41c47ea6df6cd36ca401476dc3db16e08553952b
Author: Hannes Reinecke <hare@xxxxxxxxxx>
Date:   Sat Sep 14 14:01:22 2024 +0200

    nvme-multipath: system fails to create generic nvme device
    
    [ Upstream commit 63bcf9014e95a7d279d10d8e2caa5d88db2b1855 ]
    
    NVME_NSHEAD_DISK_LIVE is a flag for struct nvme_ns_head, not nvme_ns.
    The current code has a typo causing NVME_NSHEAD_DISK_LIVE never to
    be cleared once device_add_disk_fails, causing the system never to
    create the 'generic' character device. Even several rescan attempts
    will change the situation and the system has to be rebooted to fix
    the issue.
    
    Fixes: 11384580e332 ("nvme-multipath: add error handling support for add_disk()")
    Signed-off-by: Hannes Reinecke <hare@xxxxxxxxxx>
    Reviewed-by: Sagi Grimberg <sagi@xxxxxxxxxxx>
    Reviewed-by: Christoph Hellwig <hch@xxxxxx>
    Signed-off-by: Keith Busch <kbusch@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c
index 518e22dd4f9be..6d97058cde7a1 100644
--- a/drivers/nvme/host/multipath.c
+++ b/drivers/nvme/host/multipath.c
@@ -648,7 +648,7 @@ static void nvme_mpath_set_live(struct nvme_ns *ns)
 		rc = device_add_disk(&head->subsys->dev, head->disk,
 				     nvme_ns_attr_groups);
 		if (rc) {
-			clear_bit(NVME_NSHEAD_DISK_LIVE, &ns->flags);
+			clear_bit(NVME_NSHEAD_DISK_LIVE, &head->flags);
 			return;
 		}
 		nvme_add_ns_head_cdev(head);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux