summaryrefslogtreecommitdiff
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-06-10 21:21:56 +0000
committerSteve French <sfrench@us.ibm.com>2008-06-10 21:21:56 +0000
commitdbdbb87636e882042cbe53d5d4eac94206f8db83 (patch)
tree82814c9b1ea4af85f13a80cbc0723c15323e5d93 /fs/cifs/connect.c
parent5132861a7a44498ebb18357473f8b8d4cdc70e9f (diff)
downloadlwn-dbdbb87636e882042cbe53d5d4eac94206f8db83.tar.gz
lwn-dbdbb87636e882042cbe53d5d4eac94206f8db83.zip
[CIFS] Fix hang in mount when negprot causes server to kill tcp session
Acked-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r--fs/cifs/connect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index d49e274f8eba..e8fa46c7cff2 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -653,6 +653,7 @@ multi_t2_fnd:
spin_lock(&GlobalMid_Lock);
server->tcpStatus = CifsExiting;
spin_unlock(&GlobalMid_Lock);
+ wake_up_all(&server->response_q);
/* don't exit until kthread_stop is called */
set_current_state(TASK_UNINTERRUPTIBLE);