summaryrefslogtreecommitdiffstats
path: root/fs/cifs/ntlmssp.h
diff options
context:
space:
mode:
authorShyam Prasad N <sprasad@microsoft.com>2021-07-19 14:46:53 +0200
committerSteve French <stfrench@microsoft.com>2022-01-03 03:38:46 +0100
commitd1a931ce2e3b7761d293ba8e0bde2b0180f456e9 (patch)
tree1de9314a0edcfd133b19d83dc9cddc6772a77c2d /fs/cifs/ntlmssp.h
parentcifs: remove redundant assignment to pointer p (diff)
downloadlinux-d1a931ce2e3b7761d293ba8e0bde2b0180f456e9.tar.xz
linux-d1a931ce2e3b7761d293ba8e0bde2b0180f456e9.zip
cifs: track individual channel status using chans_need_reconnect
We needed a way to identify the channels under the smb session which are in reconnect, so that the traffic to other channels can continue. So I replaced the bool need_reconnect with a bitmask identifying all the channels that need reconnection (named chans_need_reconnect). When a channel needs reconnection, the bit corresponding to the index of the server in ses->chans is used to set this bitmask. Checking if no channels or all the channels need reconnect then becomes very easy. Also wrote some helper macros for checking and setting the bits. Signed-off-by: Shyam Prasad N <sprasad@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/ntlmssp.h')
0 files changed, 0 insertions, 0 deletions