scsi error handling and ACPI suspend
The power-management code in 2.5 presently signals all running threads in an attempt to make them reach a quiescent state so that it can write to disk without fighting with them over kernel resources.
When the error handler is signalled, it wakes up and exits. On resume, there is no error handler, and the system panics near scsi_error.c:233
The recommended solution is to set the PF_IOTHREAD flag for the error handler threads, which indicates that suspend should not try to stop them.
*** drivers/scsi/scsi_error.c Fri Jul 19 14:48:40 2002
--- drivers/scsi/scsi_error.c.orig Fri Jul 19 14:50:32 2002
***************
*** 1870,1876 ****
* to any signals.
*/
siginitsetinv(¤t->blocked, SHUTDOWN_SIGS);
- current->flags |= PF_IOTHREAD; /* don't let suspend stop us */
lock_kernel();
--- 1870,1875 ----