Skip to content

Commit

Permalink
[SCSI] scsi_error thread exits in TASK_INTERRUPTIBLE state.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt authored and James Bottomley committed Oct 19, 2005
1 parent 1619289 commit 055787e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/scsi_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 055787e

Please sign in to comment.