]> err.no Git - linux-2.6/commitdiff
[SCSI] scsi_error thread exits in TASK_INTERRUPTIBLE state.
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 19 Oct 2005 12:22:13 +0000 (08:22 -0400)
committerJames Bottomley <jejb@mulgrave.(none)>
Wed, 19 Oct 2005 13:53:59 +0000 (09:53 -0400)
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 <rostedt@goodmis.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_error.c

index ad534216507961f438dfebe99bffe013daef19e5..52b348c36d56b7cc4be4a03e444e8ad182679620 100644 (file)
@@ -1645,6 +1645,8 @@ int scsi_error_handler(void *data)
                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));