Skip to content

Commit

Permalink
[CIFS] Fix hang in mount when negprot causes server to kill tcp session
Browse files Browse the repository at this point in the history
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Jun 10, 2008
1 parent 5132861 commit dbdbb87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fs/cifs/CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ Version 1.53
------------
DFS support added (Microsoft Distributed File System client support needed
for referrals which enable a hierarchical name space among servers).
Disable temporary caching of mode bits to servers which do not support
storing of mode (e.g. Windows servers, when client mounts without cifsacl
mount option) and add new "dynperm" mount option to enable temporary caching
of mode (enable old behavior). Fix hang on mount caused when server crashes
tcp session during negotiate protocol.

Version 1.52
------------
Expand Down
1 change: 1 addition & 0 deletions fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
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);
Expand Down

0 comments on commit dbdbb87

Please sign in to comment.