提交 dbdbb876 编写于 作者: S Steve French

[CIFS] Fix hang in mount when negprot causes server to kill tcp session

Acked-by: NJeff Layton <jlayton@redhat.com>
Signed-off-by: NSteve French <sfrench@us.ibm.com>
上级 5132861a
...@@ -2,6 +2,11 @@ Version 1.53 ...@@ -2,6 +2,11 @@ Version 1.53
------------ ------------
DFS support added (Microsoft Distributed File System client support needed DFS support added (Microsoft Distributed File System client support needed
for referrals which enable a hierarchical name space among servers). 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 Version 1.52
------------ ------------
......
...@@ -653,6 +653,7 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server) ...@@ -653,6 +653,7 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
spin_lock(&GlobalMid_Lock); spin_lock(&GlobalMid_Lock);
server->tcpStatus = CifsExiting; server->tcpStatus = CifsExiting;
spin_unlock(&GlobalMid_Lock); spin_unlock(&GlobalMid_Lock);
wake_up_all(&server->response_q);
/* don't exit until kthread_stop is called */ /* don't exit until kthread_stop is called */
set_current_state(TASK_UNINTERRUPTIBLE); set_current_state(TASK_UNINTERRUPTIBLE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册