]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:50 +0000 (11:01 +0200)
commit9e0a57afef6e8b993bdf025b2153c1d40ccb00ec
treebc25c9508d63fa5a906f56b19acca738db247ae7
parent2f74c898fe669b69d1255035e1d048df397c6c17
nfs: add minor version to nfs_server_key for fscache

[ Upstream commit f9c8212ea66bef797f204ffbf6e8cc54e1241721 ]

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>
fs/nfs/client.c
fs/nfs/fscache.c
fs/nfs/nfs4client.c