]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Reconnect expired SMB sessions
authorPavel Shilovsky <pshilov@microsoft.com>
Sat, 8 Jul 2017 21:32:00 +0000 (14:32 -0700)
committerSteve French <smfrench@gmail.com>
Sat, 8 Jul 2017 22:23:10 +0000 (17:23 -0500)
commita917fea64685df73996c14c9c4b2c15ef464865f
tree62ddef834e4a5b9298f662446dc49814c088756c
parentd44c8f2075fcfa58ad49a13c67342a4b0f51c96c
CIFS: Reconnect expired SMB sessions

According to the MS-SMB2 spec (3.2.5.1.6) once the client receives
STATUS_NETWORK_SESSION_EXPIRED error code from a server it should
reconnect the current SMB session. Currently the client doesn't do
that. This can result in subsequent client requests failing by
the server. The patch adds an additional logic to the demultiplex
thread to identify expired sessions and reconnect them.

Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/smb2ops.c