NFSv4.1 another fix for EXCHGID4_FLAG_USE_PNFS_DS for DS server
authorOlga Kornievskaia <kolga@netapp.com>
Mon, 24 Jun 2024 13:28:27 +0000 (09:28 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Jul 2024 17:47:27 +0000 (13:47 -0400)
commit4840c00003a2275668a13b82c9f5b1aed80183aa
tree9b95f039c7a5d1906e21cf8f4af819bb69235d73
parent2f1f31042ef07719a0d5cb4784b8a32d20c13110
NFSv4.1 another fix for EXCHGID4_FLAG_USE_PNFS_DS for DS server

Previously in order to mark the communication with the DS server,
we tried to use NFS_CS_DS in cl_flags. However, this flag would
only be saved for the DS server and in case where DS equals MDS,
the client would not find a matching nfs_client in nfs_match_client
that represents the MDS (but is also a DS).

Instead, don't rely on the NFS_CS_DS but instead use NFS_CS_PNFS.

Fixes: 379e4adfddd6 ("NFSv4.1: fixup use EXCHGID4_FLAG_USE_PNFS_DS for DS server")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4client.c
fs/nfs/nfs4proc.c