cifs: do not duplicate fscache cookie for secondary channels
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 19 Jul 2021 13:59:14 +0000 (13:59 +0000)
committerSteve French <stfrench@microsoft.com>
Sat, 13 Nov 2021 05:29:08 +0000 (23:29 -0600)
commit46bb1b9484aeaf701da50c9ee063f3e93ce2a37b
tree3ee55bf38d941e4c5e015ce52378153e279e9993
parent0f2b305af944973d6fa4acdb97151efe5b64aa55
cifs: do not duplicate fscache cookie for secondary channels

We allocate index cookies for each connection from the client.
However, we don't need this index for each channel in case of
multichannel. So making sure that we avoid creating duplicate
cookies by instantiating only for 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/connect.c