diff options
author | James Bottomley <jejb@titanic.(none)> | 2005-09-19 10:50:04 -0400 |
---|---|---|
committer | James Bottomley <jejb@titanic.(none)> | 2005-09-19 10:50:04 -0400 |
commit | 3ed7a4704beb66a155acd67b78b7e9a5674d55fb (patch) | |
tree | 0a0ad71a64888fb2ab69e2b0acb99005dbc3af04 /include/scsi/scsi_host.h | |
parent | 939647ee308e0ad924e776657704c7bedd498664 (diff) |
[SCSI] Fix thread termination for the SCSI error handle
From: Alan Stern <stern@rowland.harvard.edu>
This patch (as561) fixes the error handler's thread-exit code. The
kthread_stop call won't wake the thread from a down_interruptible, so
the patch gets rid of the semaphore and simply does
set_current_state(TASK_INTERRUPTIBLE);
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Modified to simplify the termination loop and correct the sleep condition.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/scsi_host.h')
-rw-r--r-- | include/scsi/scsi_host.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 540369ff815c..69313ba7505b 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -467,8 +467,6 @@ struct Scsi_Host { | |||
467 | 467 | ||
468 | struct list_head eh_cmd_q; | 468 | struct list_head eh_cmd_q; |
469 | struct task_struct * ehandler; /* Error recovery thread. */ | 469 | struct task_struct * ehandler; /* Error recovery thread. */ |
470 | struct semaphore * eh_wait; /* The error recovery thread waits | ||
471 | on this. */ | ||
472 | struct semaphore * eh_action; /* Wait for specific actions on the | 470 | struct semaphore * eh_action; /* Wait for specific actions on the |
473 | host. */ | 471 | host. */ |
474 | unsigned int eh_active:1; /* Indicates the eh thread is awake and active if | 472 | unsigned int eh_active:1; /* Indicates the eh thread is awake and active if |