diff options
author | Shyam Prasad N <sprasad@microsoft.com> | 2021-07-19 13:26:24 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-11-13 03:27:06 +0100 |
commit | 0f2b305af944973d6fa4acdb97151efe5b64aa55 (patch) | |
tree | 9b86fa611ee2c4038a936a51cf44515c9a64ee3e /fs/cifs/cifs_debug.c | |
parent | cifs: protect session channel fields with chan_lock (diff) | |
download | linux-0f2b305af944973d6fa4acdb97151efe5b64aa55.tar.xz linux-0f2b305af944973d6fa4acdb97151efe5b64aa55.zip |
cifs: connect individual channel servers to primary channel server
Today, we don't have any way to get the smb session for any
of the secondary channels. Introducing a pointer to the primary
server from server struct of any secondary channel. The value will
be NULL for the server of the primary channel. This will enable us
to get the smb session for any channel.
This will be needed for some of the changes that I'm planning
to make soon.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifs_debug.c')
-rw-r--r-- | fs/cifs/cifs_debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 248a8f973cf9..d282caf9f037 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -271,7 +271,8 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) c = 0; spin_lock(&cifs_tcp_ses_lock); list_for_each_entry(server, &cifs_tcp_ses_list, tcp_ses_list) { - if (server->is_channel) + /* channel info will be printed as a part of sessions below */ + if (CIFS_SERVER_IS_CHAN(server)) continue; c++; |