Daniel Ritz bf4de6f2db [PATCH] pcmcia/cs: fix possible missed wakeup
- thread_done should only be completed when the wait_queue is installed.

- all wake up conditions should be checked before schedule()

this fixes a hang of rmmod in the sequence modprobe yenta_socket; rmmod
yenta_socket as reported by Andreas Steinmetz.  w/o this rmmod yenta_socket
can hang on wait_for_completion() in pcmcia_unregister_socket()

Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch>
Cc: Dominik Brodowski <linux@brodo.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-09 13:57:47 -07:00
..
2005-09-07 18:44:33 -07:00
2005-07-30 09:47:53 -05:00
2005-09-07 17:17:33 -07:00
2005-09-07 16:57:20 -07:00
2005-09-06 17:52:54 -05:00
2005-09-07 16:57:17 -07:00
2005-09-09 13:57:32 -07:00
2005-09-08 01:45:47 -04:00
2005-09-06 22:15:20 -04:00
2005-08-30 21:46:19 -07:00
2005-09-08 23:07:29 -04:00
2005-09-09 13:57:27 -07:00
2005-06-21 18:46:32 -07:00
2005-08-29 17:02:17 -04:00