]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/scsi/scsi_scan.c
scsi_scan: don't dump trace when scsi_prep_async_scan() is called twice
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 30 Oct 2015 11:37:49 +0000 (12:37 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Nov 2015 01:22:48 +0000 (20:22 -0500)
commita4cf30e15ccea82a07fa5870e8af787b9ea1a672
treea5b51ec5647fc62b1c381ad682504e78e81e1a78
parentabc01f7d54da8c77d650e730bcaef1c6c3982a5a
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: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Tested-by: Alex Ng <alexng@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_scan.c