diff options
author | Aurelien Aptel <aaptel@suse.com> | 2019-09-20 06:22:14 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-11-25 01:16:30 -0600 |
commit | f6a6bf7c4d53837767125e635e7d7d0dc48ee59e (patch) | |
tree | de39238ea6e7e483515f744a97c05e70decb7b9c /fs/cifs/smb2ops.c | |
parent | f780bd3fef17c4fda12e9c50e28e91c0e18cf448 (diff) | |
download | lwn-f6a6bf7c4d53837767125e635e7d7d0dc48ee59e.tar.gz lwn-f6a6bf7c4d53837767125e635e7d7d0dc48ee59e.zip |
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>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r-- | fs/cifs/smb2ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index 3b0f6cda9a87..378480a1732f 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -310,7 +310,7 @@ smb2_negotiate(const unsigned int xid, struct cifs_ses *ses) { int rc; - ses->server->CurrentMid = 0; + cifs_ses_server(ses)->CurrentMid = 0; rc = SMB2_negotiate(xid, ses); /* BB we probably don't need to retry with modern servers */ if (rc == -EAGAIN) |