>From b0e90778f012010c881f8bdc03bce63a36921b77 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke Date: Mon, 14 Oct 2013 13:11:22 +0200 Subject: [PATCH] scsi_scan: continue report_lun_scan after error When scsi_probe_and_add_lun() fails in scsi_report_lun_scan() this does _not_ indicate that the entire target is done for. So continue scanning for the remaining devices. Signed-off-by: Hannes Reinecke diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index 307a811..973a121 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c @@ -1484,13 +1484,12 @@ static int scsi_report_lun_scan(struct scsi_target *starget, int bflags, lun, NULL, NULL, rescan, NULL); if (res == SCSI_SCAN_NO_RESPONSE) { /* - * Got some results, but now none, abort. + * Got some results, but now none, ignore. */ sdev_printk(KERN_ERR, sdev, "Unexpected response" - " from lun %d while scanning, scan" - " aborted\n", lun); - break; + " from lun %d while scanning," + " ignoring device\n", lun); } } }