]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: avoid use of dstaddr as key for fscache client cookie
authorShyam Prasad N <sprasad@microsoft.com>
Thu, 2 Dec 2021 07:46:54 +0000 (07:46 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 3 Dec 2021 18:38:25 +0000 (12:38 -0600)
commit4322886a7d383bfa41e206563f0f9a805fbb99f7
tree7ffdd1b45f7e078957f139d50e71202e2485fe48
parent5d8ace94ff3d76726425478d73987ac18a97a61d
cifs: avoid use of dstaddr as key for fscache client cookie

server->dstaddr can change when the DNS mapping for the
server hostname changes. But conn_id is a u64 counter
that is incremented each time a new TCP connection
is setup. So use only that as a key.

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/fscache.c