* [PATCH] NFSv4.1: don't do two EXCHANGE_IDs on mount
@ 2012-10-02 18:33 Weston Andros Adamson
0 siblings, 0 replies; only message in thread
From: Weston Andros Adamson @ 2012-10-02 18:33 UTC (permalink / raw)
To: Trond.Myklebust; +Cc: linux-nfs, chuck.lever, Weston Andros Adamson
Since the addition of NFSv4 server trunking detection the mount context
calls nfs4_proc_exchange_id then schedules the state manager, which also
calls nfs4_proc_exchange_id. Setting the NFS4CLNT_LEASE_CONFIRM bit
makes the state manager skip the unneeded EXCHANGE_ID and continue on
with session creation.
Reported-by: Jorge Mora <mora@netapp.com>
Signed-off-by: Weston Andros Adamson <dros@netapp.com>
---
fs/nfs/nfs4state.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index 24a3ab4..c351e6b 100644
--- a/fs/nfs/nfs4state.c
+++ b/fs/nfs/nfs4state.c
@@ -351,6 +351,7 @@ int nfs41_discover_server_trunking(struct nfs_client *clp,
status = nfs4_proc_exchange_id(clp, cred);
if (status != NFS4_OK)
return status;
+ set_bit(NFS4CLNT_LEASE_CONFIRM, &clp->cl_state);
return nfs41_walk_client_list(clp, result, cred);
}
--
1.7.9.6 (Apple Git-31.1)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-02 18:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-02 18:33 [PATCH] NFSv4.1: don't do two EXCHANGE_IDs on mount Weston Andros Adamson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).