Skip to contentSkip to conversation

scsi_scan: don't dump trace when scsi_prep_async_scan() is called twice

PATCH RESEND New Vitaly Kuznetsov 1 participant 1 message Oct 30, 2015 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 scsi_scan: don't dump trace when scsi_prep_async_scan() is called twice

The only user of scsi_prep_async_scan() is scsi_scan_host() and it handles the situation correctly. Move 'called twice' reporting to debug level as well.

The issue is observed on Hyper-V: on any device add/remove event storvsc driver calls scsi_scan_host() and in case previous scan is still running we get the message and stack dump on console.

---
Changes since v1:
- No changes, this is just a resend.

---
 drivers/scsi/scsi_scan.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/scsi/scsi_scan.c +1 -2
index f9f3f82..01ad016 100644
@@ -1712,8 +1712,7 @@ static struct async_scan_data *scsi_prep_async_scan(struct Scsi_Host *shost)
 		return NULL;
 
 	if (shost->async_scan) {
-		shost_printk(KERN_INFO, shost, "%s called twice\n", __func__);
-		dump_stack();
+		shost_printk(KERN_DEBUG, shost, "%s called twice\n", __func__);
 		return NULL;
 	}
 
Signature · 1 line
2.4.3