Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] pcmcia: fix task state at pccard thread exit

The pccardd thread has a race in it that it can shutdown in the
TASK_INTERRUPTIBLE state.

Make sure we mark ourselves runnable again as we remove ourselves from
the wait queue.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Steven Rostedt and committed by
Linus Torvalds
220ec029 2e457ef6

+3
+3
drivers/pcmcia/cs.c
··· 689 689 schedule(); 690 690 try_to_freeze(); 691 691 } 692 + /* make sure we are running before we exit */ 693 + set_current_state(TASK_RUNNING); 694 + 692 695 remove_wait_queue(&skt->thread_wait, &wait); 693 696 694 697 /* remove from the device core */