Skip to content

Commit 379e4ad

Browse files
olgakorn1amschuma-ntap
authored andcommitted
NFSv4.1: fixup use EXCHGID4_FLAG_USE_PNFS_DS for DS server
This patches fixes commit 51d674a "NFSv4.1: use EXCHGID4_FLAG_USE_PNFS_DS for DS server", purpose of that commit was to mark EXCHANGE_ID to the DS with the appropriate flag. However, connection to MDS can return both EXCHGID4_FLAG_USE_PNFS_DS and EXCHGID4_FLAG_USE_PNFS_MDS set but previous patch would only remember the USE_PNFS_DS and for the 2nd EXCHANGE_ID send that to the MDS. Instead, just mark the pnfs path exclusively. Fixes: 51d674a ("NFSv4.1: use EXCHGID4_FLAG_USE_PNFS_DS for DS server") Signed-off-by: Olga Kornievskaia <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent e1c6cfb commit 379e4ad

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/nfs/nfs4proc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8870,8 +8870,6 @@ static int _nfs4_proc_exchange_id(struct nfs_client *clp, const struct cred *cre
88708870
/* Save the EXCHANGE_ID verifier session trunk tests */
88718871
memcpy(clp->cl_confirm.data, argp->verifier.data,
88728872
sizeof(clp->cl_confirm.data));
8873-
if (resp->flags & EXCHGID4_FLAG_USE_PNFS_DS)
8874-
set_bit(NFS_CS_DS, &clp->cl_flags);
88758873
out:
88768874
trace_nfs4_exchange_id(clp, status);
88778875
rpc_put_task(task);

0 commit comments

Comments
 (0)