[OS-BUILD PATCHv2] nvme: nvme_mpath_init remove multipath check

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

 



From: Mike Snitzer <snitzer@xxxxxxxxxx>

nvme: nvme_mpath_init remove multipath check

BZ: 1948690
Upstream Status: RHEL-only

Signed-off-by: Mike Snitzer <snitzer@xxxxxxxxxx>

rhel-8.git commit f027c2e4045d02d103c7a545181b6df0b6162ee7
Author: David Milburn <dmilburn@xxxxxxxxxx>
Date:   Wed Jan 29 15:29:37 2020 -0500

    [nvme] nvme: nvme_mpath_init remove multipath check

    Message-id: <1580311777-9193-1-git-send-email-dmilburn@xxxxxxxxxx>
    Patchwork-id: 294254
    Patchwork-instance: patchwork
    O-Subject: [RHEL8.2 PATCH] nvme: nvme_mpath_init remove multipath check
    Bugzilla: 1790958
    RH-Acked-by: Gopal Tiwari <gtiwari@xxxxxxxxxx>
    RH-Acked-by: Ewan Milne <emilne@xxxxxxxxxx>

    Marco Patalano found missing NVMe optimized/inaccessible paths when
    executing "nvme list-subsys" command with native multipathing disabled.
    He was able to git bisect this back to 6d0f426e ("nvme: fix multipath
    crash when ANA is deactivated"). The problem is the check for multipath,
    removing this is similar to RHEL commit 158eef2e ("nvme: allow ANA support
    to be independent of native multipathing"), I did leave the existing
    comment in place for future back ports and as a reminder to watch for
    these changes in the future.

    Bugzilla: 1790958
    Build info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=26061480
    Upstream: RHEL only
    Test: QE verified "nvme list-subsys" command and did sanity check with native
    multipathing disabled.

    Fixes: 6d0f426e ("nvme: fix multipath crash when ANA is deactivated")
    Signed-off-by: David Milburn <dmilburn@xxxxxxxxxx>
    Signed-off-by: Bruno Meneguele <bmeneg@xxxxxxxxxx>

diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c
index blahblah..blahblah 100644
--- a/drivers/nvme/host/multipath.c
+++ b/drivers/nvme/host/multipath.c
@@ -801,8 +801,7 @@ int nvme_mpath_init_identify(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id)
 	int error = 0;
 
 	/* check if multipath is enabled and we have the capability */
-	if (!multipath || !ctrl->subsys ||
-	    !(ctrl->subsys->cmic & NVME_CTRL_CMIC_ANA))
+	if (!ctrl->subsys || !(ctrl->subsys->cmic & NVME_CTRL_CMIC_ANA))
 		return 0;
 
 	ctrl->anacap = id->anacap;

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1157
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux