]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb02917fed2840b5b9b26b3982c140f7edfefe50f
tree3ee55bf38d941e4c5e015ce52378153e279e9993
parent3e535d70898b6fb1a7298fa7d07229fcb6a2eee6
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