Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4cf30e1 authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Martin K. Petersen
Browse files

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.

Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Tested-by: default avatarAlex Ng <alexng@microsoft.com>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent abc01f7d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1713,8 +1713,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;
	}