Skip to content

Commit 1042d22

Browse files
Hannes Reineckegregkh
authored andcommitted
nvme: fixup scan failure for non-ANA multipath controllers
commit 26d7fb4 upstream. 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 <[email protected]> Tested-by: Srikanth Aithal <[email protected]> [hch: more detailed commit message] Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8bfe4f0 commit 1042d22

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
@@ -4278,7 +4278,7 @@ static void nvme_scan_work(struct work_struct *work)
42784278
if (test_bit(NVME_AER_NOTICE_NS_CHANGED, &ctrl->events))
42794279
nvme_queue_scan(ctrl);
42804280
#ifdef CONFIG_NVME_MULTIPATH
4281-
else
4281+
else if (ctrl->ana_log_buf)
42824282
/* Re-read the ANA log page to not miss updates */
42834283
queue_work(nvme_wq, &ctrl->ana_work);
42844284
#endif

0 commit comments

Comments
 (0)