]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
scsi: Don't abort scsi_scan due to unexpected response
authorJohn Sobecki <john.sobecki@oracle.com>
Tue, 7 Nov 2017 23:27:30 +0000 (16:27 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 15 Nov 2017 06:13:01 +0000 (01:13 -0500)
    Orabug: 27072286

    During a scan for new LUNs, if an array misconfiguration results in
    an error (non-configured LUNs exist in the middle), this terminates the
    scsi scan:

     sd 12:0:0:0: Unexpected response from lun 1 while scanning, scan aborted

    This patch allows the scsi scan to continue, and prints this warning:

     sd 12:0:0:0: Unexpected response from lun 1 while scanning,
                   ignoring device

    Related bugs: 1827107017500570

Signed-off-by: John Sobecki <john.sobecki@oracle.com>
Reviewed-by: Srinivas Eeda <srinivas.eeda@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/scsi/scsi_scan.c

index 7a1a39a4817ca6bd8d9bf4cb85f02b64ffd0411f..2f4e89d1fa701848e7352191304fdaaa9ed7ec3e 100644 (file)
@@ -1507,9 +1507,8 @@ retry:
                                 */
                                sdev_printk(KERN_ERR, sdev,
                                        "Unexpected response"
-                                       " from lun %llu while scanning, scan"
-                                       " aborted\n", (unsigned long long)lun);
-                               break;
+                                       " from lun %d while scanning,"
+                                       " ignoring device\n", lun);
                        }
                }
        }