Commit 0b6af2d8 authored by Jeff Garzik's avatar Jeff Garzik

[libata] kill timer when thread dies

Noticed and fixed by David Woodhouse.
parent f4c7bac1
...@@ -2571,7 +2571,8 @@ static int ata_thread (void *data) ...@@ -2571,7 +2571,8 @@ static int ata_thread (void *data)
printk(KERN_DEBUG "ata%u: thread exiting\n", ap->id); printk(KERN_DEBUG "ata%u: thread exiting\n", ap->id);
ap->thr_pid = -1; ap->thr_pid = -1;
complete_and_exit (&ap->thr_exited, 0); del_timer_sync(&ap->thr_timer);
complete_and_exit (&ap->thr_exited, 0);
} }
/** /**
......
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