cifs: handle cases where multiple sessions share connection
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 6 Feb 2024 15:00:47 +0000 (15:00 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 9 Feb 2024 20:43:25 +0000 (14:43 -0600)
commita39c757bf0596b17482a507f31c3ef0af0d1d2b4
tree01e463edb4a322bb3cc05be5a30c95a48fa379ea
parentc6e02eefd6ace3da3369c764f15429f5647056af
cifs: handle cases where multiple sessions share connection

Based on our implementation of multichannel, it is entirely
possible that a server struct may not be found in any channel
of an SMB session.

In such cases, we should be prepared to move on and search for
the server struct in the next session.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c
fs/smb/client/sess.c