]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitbbb9db5e2a7a1ca0926d26a279000384be21b789
tree7ffdd1b45f7e078957f139d50e71202e2485fe48
parent2adc82006bcb067523bedd38e93711c80fd274c1
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