summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2019-01-25 19:56:41 +0100
committerSteve French <stfrench@microsoft.com>2019-03-05 03:06:39 +0100
commit82e0457af5f92126a0a6389d827b1e4daad8e0fd (patch)
tree2945aa68964944470ac8905d00468ac63493aced /fs/cifs/smb2ops.c
parentCIFS: Always reset read error to -EIO if no response (diff)
downloadlinux-82e0457af5f92126a0a6389d827b1e4daad8e0fd.tar.xz
linux-82e0457af5f92126a0a6389d827b1e4daad8e0fd.zip
CIFS: Do not log credits when unmounting a share
Currently we only skip credits logging on reconnects. When unmounting a share the number of credits on the client doesn't matter, so skip logging in such cases too. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r--fs/cifs/smb2ops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index ea56b1cdbdde..90b1a8e218c9 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -102,7 +102,8 @@ smb2_add_credits(struct TCP_Server_Info *server, const unsigned int add,
spin_unlock(&server->req_lock);
wake_up(&server->request_q);
- if (server->tcpStatus == CifsNeedReconnect)
+ if (server->tcpStatus == CifsNeedReconnect
+ || server->tcpStatus == CifsExiting)
return;
switch (rc) {