From: Daniel Ritz Date: Fri, 9 Sep 2005 20:03:23 +0000 (-0700) Subject: [PATCH] pcmcia/cs: fix possible missed wakeup X-Git-Tag: v2.6.14-rc1~382 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf4de6f2db79f3c396bd884f546cd2ea91a686f2;p=pandora-kernel.git [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 Cc: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed