diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2019-02-05 12:56:44 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-03-04 20:05:34 -0600 |
commit | eca004523811f816bcfca3046ab54e1278e0973b (patch) | |
tree | 98a06bf9c758a0a2e15ad49d9aaf9750efd14936 /fs/cifs/smb2misc.c | |
parent | 74ea5f983f9e86ebb4b7ed611937776dab18c67e (diff) | |
download | lwn-eca004523811f816bcfca3046ab54e1278e0973b.tar.gz lwn-eca004523811f816bcfca3046ab54e1278e0973b.zip |
cifs: add credits from unmatched responses/messages
We should add any credits granted to us from unmatched server responses.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2misc.c')
-rw-r--r-- | fs/cifs/smb2misc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/cifs/smb2misc.c b/fs/cifs/smb2misc.c index 7b8b58fb4d3f..6a9c47541c53 100644 --- a/fs/cifs/smb2misc.c +++ b/fs/cifs/smb2misc.c @@ -648,13 +648,6 @@ smb2_is_valid_oplock_break(char *buffer, struct TCP_Server_Info *server) if (rsp->sync_hdr.Command != SMB2_OPLOCK_BREAK) return false; - if (rsp->sync_hdr.CreditRequest) { - spin_lock(&server->req_lock); - server->credits += le16_to_cpu(rsp->sync_hdr.CreditRequest); - spin_unlock(&server->req_lock); - wake_up(&server->request_q); - } - if (rsp->StructureSize != smb2_rsp_struct_sizes[SMB2_OPLOCK_BREAK_HE]) { if (le16_to_cpu(rsp->StructureSize) == 44) |