Commit 9f3097ce authored by James Bottomley's avatar James Bottomley

[SCSI] add missing eh_thread kill instruction

parent 3f7401c6
......@@ -338,6 +338,7 @@ void scsi_unregister(struct Scsi_Host *shost)
if (shost->ehandler) {
DECLARE_COMPLETION(sem);
shost->eh_notify = &sem;
shost->eh_kill = 1;
up(shost->eh_wait);
wait_for_completion(&sem);
shost->eh_notify = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment