mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
![Rafael J. Wysocki](/assets/img/avatar_default.png)
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>
11 lines
256 B
C
11 lines
256 B
C
#ifndef _SCSI_SCSI_SCAN_H
|
|
#define _SCSI_SCSI_SCAN_H
|
|
|
|
#ifdef CONFIG_SCSI
|
|
/* drivers/scsi/scsi_scan.c */
|
|
extern int scsi_complete_async_scans(void);
|
|
#else
|
|
static inline int scsi_complete_async_scans(void) { return 0; }
|
|
#endif
|
|
|
|
#endif /* _SCSI_SCSI_SCAN_H */
|