diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2023-10-13 12:25:30 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-11-09 19:25:14 +0300 |
commit | 0c51cc6f2cb0108e7d49805f6e089cd85caab279 (patch) | |
tree | ec592e46424ae9d67d938bcd70093e73489e3336 /fs/smb/client/cifsglob.h | |
parent | 1bc081b67a79b6e75fae686e98048cea1038ae31 (diff) | |
download | linux-0c51cc6f2cb0108e7d49805f6e089cd85caab279.tar.xz |
cifs: handle cases where a channel is closed
So far, SMB multichannel could only scale up, but not
scale down the number of channels. In this series of
patch, we now allow the client to deal with the case
of multichannel disabled on the server when the share
is mounted. With that change, we now need the ability
to scale down the channels.
This change allows the client to deal with cases of
missing channels more gracefully.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/cifsglob.h')
-rw-r--r-- | fs/smb/client/cifsglob.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h index e55f49e278a2..eae138040edf 100644 --- a/fs/smb/client/cifsglob.h +++ b/fs/smb/client/cifsglob.h @@ -1050,6 +1050,7 @@ struct cifs_ses { spinlock_t chan_lock; /* ========= begin: protected by chan_lock ======== */ #define CIFS_MAX_CHANNELS 16 +#define CIFS_INVAL_CHAN_INDEX (-1) #define CIFS_ALL_CHANNELS_SET(ses) \ ((1UL << (ses)->chan_count) - 1) #define CIFS_ALL_CHANS_GOOD(ses) \ |