]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
NFSv4.1: don't do two EXCHANGE_IDs on mount
authorWeston Andros Adamson <dros@netapp.com>
Tue, 2 Oct 2012 18:33:22 +0000 (11:33 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Oct 2012 18:35:47 +0000 (11:35 -0700)
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>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4state.c

index 24a3ab492df24344db53e2f898c0f9510a9650bc..c351e6b398388f7c1b4b09a6240d4ad6c2559295 100644 (file)
@@ -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);
 }