]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc18f0d449289ddab7368de6182b8a538422c3b1
tree149d913a76e12ba5a343c5dfcffad21d1e0a7761
parent3d908088bd24af26077bf515f32c077984457455
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