From: Steven Rostedt Found in the -rt patch set. The scsi_error thread likely will be in the TASK_INTERRUPTIBLE state upon exit. This patch fixes this bug. Signed-off-by: Steven Rostedt Cc: James Bottomley Signed-off-by: Andrew Morton --- drivers/scsi/scsi_error.c | 1 + 1 files changed, 1 insertion(+) diff -puN drivers/scsi/scsi_error.c~scsi_error-thread-exits-in-task_interruptible-state drivers/scsi/scsi_error.c --- devel/drivers/scsi/scsi_error.c~scsi_error-thread-exits-in-task_interruptible-state 2005-10-19 10:12:21.000000000 -0700 +++ devel-akpm/drivers/scsi/scsi_error.c 2005-10-19 10:12:33.000000000 -0700 @@ -1644,6 +1644,7 @@ int scsi_error_handler(void *data) scsi_restart_operations(shost); set_current_state(TASK_INTERRUPTIBLE); } + __set_current_state(TASK_RUNNING); SCSI_LOG_ERROR_RECOVERY(1, printk("Error handler scsi_eh_%d" " exiting\n",shost->host_no)); _