]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/cifs/cifs_spnego.c
cifs: switch servers depending on binding state
authorAurelien Aptel <aaptel@suse.com>
Fri, 20 Sep 2019 04:22:14 +0000 (06:22 +0200)
committerSteve French <stfrench@microsoft.com>
Mon, 25 Nov 2019 07:16:30 +0000 (01:16 -0600)
commitf6a6bf7c4d53837767125e635e7d7d0dc48ee59e
treede39238ea6e7e483515f744a97c05e70decb7b9c
parentf780bd3fef17c4fda12e9c50e28e91c0e18cf448
cifs: switch servers depending on binding state

Currently a lot of the code to initialize a connection & session uses
the cifs_ses as input. But depending on if we are opening a new session
or a new channel we need to use different server pointers.

Add a "binding" flag in cifs_ses and a helper function that returns
the server ptr a session should use (only in the sess establishment
code path).

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_spnego.c
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/sess.c
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c