mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[SCSI] Fix thread termination for the SCSI error handle
From: Alan Stern <[email protected]> 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 <[email protected]> Modified to simplify the termination loop and correct the sleep condition. Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
939647ee30
commit
3ed7a4704b
2 changed files with 23 additions and 34 deletions
|
|
@ -467,8 +467,6 @@ struct Scsi_Host {
|
|||
|
||||
struct list_head eh_cmd_q;
|
||||
struct task_struct * ehandler; /* Error recovery thread. */
|
||||
struct semaphore * eh_wait; /* The error recovery thread waits
|
||||
on this. */
|
||||
struct semaphore * eh_action; /* Wait for specific actions on the
|
||||
host. */
|
||||
unsigned int eh_active:1; /* Indicates the eh thread is awake and active if
|
||||
|
|
|
|||
Loading…
Reference in a new issue