cifs: multichannel: use pointer for binding channel
authorAurelien Aptel <aaptel@suse.com>
Fri, 24 Apr 2020 13:24:05 +0000 (15:24 +0200)
committerSteve French <stfrench@microsoft.com>
Thu, 4 Jun 2020 18:50:55 +0000 (13:50 -0500)
commit8eec79540d2b9cec385707be45f6e9388b34020f
treee3544323d087c547495019aa4f6d92b95aa04797
parentedb161353680e6d488d94cbcaf967745bee98d17
cifs: multichannel: use pointer for binding channel

Add a cifs_chan pointer in struct cifs_ses that points to the channel
currently being bound if ses->binding is true.

Previously it was always the channel past the established count.

This will make reconnecting (and rebinding) a channel easier later on.

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