]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f15de2e52b739058ec72de0f82c214da2841f80
tree53a2aa91d04edd533521b86edf6e1541ca4d5619
parent69f7b48ed484fad71d6e930bfdaf0934d338b776
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