linux-stable/fs/nfs
Scott Mayhew 968d4ec0c9 nfs: add minor version to nfs_server_key for fscache
[ Upstream commit 55dee1bc0d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-02 15:28:14 +02:00
..
blocklayout NFS: Mark expected switch fall-throughs 2018-08-08 16:50:02 -04:00
filelayout PNFS fallback to MDS if no deviceid found 2019-05-25 18:23:28 +02:00
flexfilelayout NFSv4/flexfiles: Fix invalid deref in FF_LAYOUT_DEVID_NODE() 2020-01-27 14:50:29 +01:00
cache_lib.c
cache_lib.h
callback.c
callback.h NFS CB_OFFLOAD xdr 2018-08-09 12:56:38 -04:00
callback_proc.c NFSv4.2 copy do not allocate memory under the lock 2018-12-13 09:16:14 +01:00
callback_xdr.c NFS CB_OFFLOAD xdr 2018-08-09 12:56:38 -04:00
client.c nfs: add minor version to nfs_server_key for fscache 2020-04-02 15:28:14 +02:00
delegation.c NFS: Fix a soft lockup in the delegation recovery code 2020-01-27 14:50:27 +01:00
delegation.h NFS: Fix a soft lockup in the delegation recovery code 2020-01-27 14:50:27 +01:00
dir.c NFS: Directory page cache pages need to be locked when read 2020-02-11 04:34:06 -08:00
direct.c NFS/pnfs: Fix pnfs_generic_prepare_to_resend_writes() 2020-02-14 16:33:24 -05:00
dns_resolve.c
dns_resolve.h
export.c NFS: Pass the inode down to the getattr() callback 2018-06-04 12:07:07 -04:00
file.c fs: nfs: Adding new return type vm_fault_t 2018-07-30 13:19:40 -04:00
fscache-index.c vfs: change inode times to use struct timespec64 2018-06-05 16:57:31 -07:00
fscache.c nfs: add minor version to nfs_server_key for fscache 2020-04-02 15:28:14 +02:00
fscache.h NFS: Fix regression whereby fscache errors are appearing on 'nofsc' mounts 2019-08-29 08:28:39 +02:00
getroot.c
inode.c NFSv4: Handle the special Linux file open access mode 2019-07-26 09:14:22 +02:00
internal.h
io.c
iostat.h
Kconfig nfs: NFS_SWAP should depend on SWAP 2020-02-14 16:33:23 -05:00
Makefile
mount_clnt.c
namespace.c
netns.h
nfs.h
nfs2super.c
nfs2xdr.c NFSv2: Fix a typo in encode_sattr() 2020-01-17 19:47:04 +01:00
nfs3_fs.h
nfs3acl.c NFS: Mark expected switch fall-throughs 2018-08-08 16:50:02 -04:00
nfs3client.c
nfs3proc.c NFS: Pass the inode down to the getattr() callback 2018-06-04 12:07:07 -04:00
nfs3super.c
nfs3xdr.c NFS/pnfs: Fix pnfs_generic_prepare_to_resend_writes() 2020-02-14 16:33:24 -05:00
nfs4_fs.h NFSv4: Fix a potential sleep while atomic in nfs4_do_reclaim() 2019-08-29 08:28:38 +02:00
nfs4client.c nfs: add minor version to nfs_server_key for fscache 2020-04-02 15:28:14 +02:00
nfs4file.c NFSv4: Fix return values for nfs4_file_open() 2019-09-21 07:16:55 +02:00
nfs4getroot.c
nfs4idmap.c keys: Fix dependency loop between construction record and auth key 2019-03-23 20:09:48 +01:00
nfs4idmap.h
nfs4namespace.c
nfs4proc.c NFSv4.1 make cachethis=no for writes 2020-02-19 19:51:59 +01:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c NFSv4: Ensure that the state manager exits the loop on SIGKILL 2019-11-06 13:05:29 +01:00
nfs4super.c
nfs4sysctl.c
nfs4trace.c
nfs4trace.h NFSv4: Fix a tracepoint Oops in initiate_file_draining() 2018-09-14 16:24:08 -04:00
nfs4xdr.c NFS/pnfs: Fix pnfs_generic_prepare_to_resend_writes() 2020-02-14 16:33:24 -05:00
nfs42.h
nfs42proc.c NFS: Fix memory leaks 2020-02-24 08:34:53 +01:00
nfs42xdr.c NFS: Add missing encode / decode sequence_maxsz to v4.2 operations 2020-01-27 14:50:29 +01:00
nfsroot.c
nfstrace.c
nfstrace.h
pagelist.c NFS: Fix initialisation of I/O result struct in nfs_pgio_rpcsetup 2019-09-21 07:16:56 +02:00
pnfs.c NFS/pnfs: Bulk destroy of layouts needs to be safe w.r.t. umount 2020-01-27 14:50:27 +01:00
pnfs.h NFS/pnfs: Bulk destroy of layouts needs to be safe w.r.t. umount 2020-01-27 14:50:27 +01:00
pnfs_dev.c
pnfs_nfs.c NFS/pnfs: Fix pnfs_generic_prepare_to_resend_writes() 2020-02-14 16:33:24 -05:00
proc.c NFSv2: Fix write regression 2019-09-21 07:17:02 +02:00
read.c NFS: Pass error information to the pgio error cleanup routine 2019-09-06 10:22:23 +02:00
super.c fs/nfs: Fix nfs_parse_devname to not modify it's argument 2020-01-27 14:50:26 +01:00
symlink.c
sysctl.c
unlink.c NFS: Fix up sillyrename() 2018-05-31 15:02:16 -04:00
write.c NFS/pnfs: Fix pnfs_generic_prepare_to_resend_writes() 2020-02-14 16:33:24 -05:00