nfs: add minor version to nfs_server_key for fscache
authorScott Mayhew <smayhew@redhat.com>
Mon, 24 Feb 2020 21:29:32 +0000 (16:29 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 25 Feb 2020 18:53:24 +0000 (13:53 -0500)
commit55dee1bc0d72877b99805e42e0205087e98b9edd
treeb71016c7543fda4d16e343d9ad57d14c8c6ccfc0
parent75a9b9176157f3095d3099adf512b5a233addbc7
nfs: add minor version to nfs_server_key for fscache

An NFS client that mounts multiple exports from the same NFS
server with higher NFSv4 versions disabled (i.e. 4.2) and without
forcing a specific NFS version results in fscache index cookie
collisions and the following messages:
[  570.004348] FS-Cache: Duplicate cookie detected

Each nfs_client structure should have its own fscache index cookie,
so add the minorversion to nfs_server_key.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=200145
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/client.c
fs/nfs/fscache.c
fs/nfs/nfs4client.c