Skip to content

Commit c7489cb

Browse files
nvme: fixup scan failure for non-ANA multipath controllers
JIRA: https://issues.redhat.com/browse/RHEL-72531 Commit 62baf70 caused the ANA log page to be re-read, even on controllers that do not support ANA. While this should generally harmless, some controllers hang on the unsupported log page and never finish probing. Fixes: 62baf70 ("nvme: re-read ANA log page after ns scan completes") Signed-off-by: Hannes Reinecke <hare@kernel.org> Tested-by: Srikanth Aithal <sraithal@amd.com> [hch: more detailed commit message] Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> (cherry picked from commit 26d7fb4) Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
1 parent ce2f6be commit c7489cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/host/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4264,7 +4264,7 @@ static void nvme_scan_work(struct work_struct *work)
42644264
if (test_bit(NVME_AER_NOTICE_NS_CHANGED, &ctrl->events))
42654265
nvme_queue_scan(ctrl);
42664266
#ifdef CONFIG_NVME_MULTIPATH
4267-
else
4267+
else if (ctrl->ana_log_buf)
42684268
/* Re-read the ANA log page to not miss updates */
42694269
queue_work(nvme_wq, &ctrl->ana_work);
42704270
#endif

0 commit comments

Comments
 (0)