summaryrefslogtreecommitdiff
path: root/fs/smb/client/smb2pdu.c
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2023-06-22 21:16:04 +0300
committerSteve French <stfrench@microsoft.com>2023-06-28 19:46:58 +0300
commit326a8d04f147e2bf393f6f9cdb74126ee6900607 (patch)
treecb06c1adce93f03efa282fc0084f0f731bc048d7 /fs/smb/client/smb2pdu.c
parent33f736187d08f6bc822117629f263b97d3df4165 (diff)
downloadlinux-326a8d04f147e2bf393f6f9cdb74126ee6900607.tar.xz
cifs: do all necessary checks for credits within or before locking
All the server credits and in-flight info is protected by req_lock. Once the req_lock is held, and we've determined that we have enough credits to continue, this lock cannot be dropped till we've made the changes to credits and in-flight count. However, we used to drop the lock in order to avoid deadlock with the recent srv_lock. This could cause the checks already made to be invalidated. Fixed it by moving the server status check to before locking req_lock. Fixes: d7d7a66aacd6 ("cifs: avoid use of global locks for high contention data") Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/smb2pdu.c')
0 files changed, 0 insertions, 0 deletions