nfsd: Allow struct nfsd4_compound_state to cache the nfs4_client
authorJeff Layton <jlayton@primarydata.com>
Mon, 30 Jun 2014 15:48:44 +0000 (11:48 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 10 Jul 2014 00:55:04 +0000 (20:55 -0400)
commit4b24ca7d30430882a2eaeb9d511990fb4581230d
tree149d913a76e12ba5a343c5dfcffad21d1e0a7761
parent62814d6a9bca1de4eb69cee161e01e0f670b486d
nfsd: Allow struct nfsd4_compound_state to cache the nfs4_client

We want to use the nfsd4_compound_state to cache the nfs4_client in
order to optimise away extra lookups of the clid.

In the v4.0 case, we use this to ensure that we only have to look up the
client at most once per compound for each call into lookup_clientid. For
v4.1+ we set the pointer in the cstate during SEQUENCE processing so we
should never need to do a search for it.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
fs/nfsd/xdr4.h
This page took 0.02428 seconds and 5 git commands to generate.