]> 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)
commitdddb11b118c0eaaa6457efee3f5318014129753a
tree7ffdd1b45f7e078957f139d50e71202e2485fe48
parent58bfa1b0c19f27c36227452cec5b43c5b5edf7aa
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