cifs: always iterate smb sessions using primary channel
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 28 Oct 2022 09:52:26 +0000 (09:52 +0000)
committerSteve French <stfrench@microsoft.com>
Sat, 5 Nov 2022 04:34:02 +0000 (23:34 -0500)
commit8abcaeaed38109e5ccaf40218e0e9e387f07bfe6
tree53a2aa91d04edd533521b86edf6e1541ca4d5619
parent30a0b95b1335e12efef89dd78518ed3e4a71a763
cifs: always iterate smb sessions using primary channel

smb sessions and tcons currently hang off primary channel only.
Secondary channels have the lists as empty. Whenever there's a
need to iterate sessions or tcons, we should use the list in the
corresponding primary channel.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/misc.c
fs/cifs/smb2misc.c
fs/cifs/smb2ops.c
fs/cifs/smb2transport.c