diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2019-01-25 10:56:41 -0800 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-03-04 20:06:39 -0600 |
commit | 82e0457af5f92126a0a6389d827b1e4daad8e0fd (patch) | |
tree | 2945aa68964944470ac8905d00468ac63493aced /fs/cifs | |
parent | 6b15eb18c6a9ddfbb387456c0f1ed86d987cb741 (diff) | |
download | linux-82e0457af5f92126a0a6389d827b1e4daad8e0fd.tar.bz2 |
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 'fs/cifs')
-rw-r--r-- | fs/cifs/smb2ops.c | 3 |
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) { |