PM/Hibernate: Wait for SCSI devices scan to complete during resume
There is a race between resume from hibernation and the asynchronous scanning of SCSI devices and to prevent it from happening we need to call scsi_complete_async_scans() during resume from hibernation. In addition, if the resume from hibernation is userland-driven, it's better to wait for all device probes in the kernel to complete before attempting to open the resume device. Signed-off-by:Rafael J. Wysocki <rjw@sisk.pl> Acked-by:
Arjan van de Ven <arjan@linux.intel.com> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/scsi/scsi_priv.h 0 additions, 3 deletionsdrivers/scsi/scsi_priv.h
- drivers/scsi/scsi_wait_scan.c 1 addition, 1 deletiondrivers/scsi/scsi_wait_scan.c
- include/scsi/scsi_scan.h 11 additions, 0 deletionsinclude/scsi/scsi_scan.h
- kernel/power/disk.c 8 additions, 0 deletionskernel/power/disk.c
- kernel/power/user.c 9 additions, 0 deletionskernel/power/user.c
Loading
Please register or sign in to comment