Skip to content
Commit 3ed7a470 authored by James Bottomley's avatar James Bottomley
Browse files

[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: default avatarAlan Stern <stern@rowland.harvard.edu>

Modified to simplify the termination loop and correct the sleep condition.

Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 939647ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment