diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2005-10-19 08:22:13 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-10-19 09:53:59 -0400 |
commit | 055787e447a6cf50aa1cc42f7d3b07f08223dd9b (patch) | |
tree | b78da02d3a3cb346b54f224474d490f72f77f1a1 /drivers | |
parent | 16192896ea8e03d18d4228023500607b00df49e6 (diff) | |
download | linux-055787e447a6cf50aa1cc42f7d3b07f08223dd9b.tar.gz linux-055787e447a6cf50aa1cc42f7d3b07f08223dd9b.tar.bz2 linux-055787e447a6cf50aa1cc42f7d3b07f08223dd9b.zip |
[SCSI] scsi_error thread exits in TASK_INTERRUPTIBLE state.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/scsi_error.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index ad5342165079..52b348c36d56 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -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)); |