Skip to content

Commit 2736f99

Browse files
jsobeckiDhaval Giani
authored andcommitted
scsi: Don't abort scsi_scan due to unexpected response
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: 18271070, 17500570 Signed-off-by: John Sobecki <[email protected]> Reviewed-by: Srinivas Eeda <[email protected]> Signed-off-by: Dhaval Giani <[email protected]>
1 parent 68463e6 commit 2736f99

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/scsi/scsi_scan.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,9 +1507,8 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags,
15071507
*/
15081508
sdev_printk(KERN_ERR, sdev,
15091509
"Unexpected response"
1510-
" from lun %llu while scanning, scan"
1511-
" aborted\n", (unsigned long long)lun);
1512-
break;
1510+
" from lun %d while scanning,"
1511+
" ignoring device\n", lun);
15131512
}
15141513
}
15151514
}

0 commit comments

Comments
 (0)