diff options
author | NeilBrown <neilb@suse.com> | 2018-12-03 11:30:30 +1100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-12-19 13:52:45 -0500 |
commit | b68572e07c58324cb8c274f1d84a20cad479c2d3 (patch) | |
tree | d823c264865b22028100f91984b9cddc180bc677 /net/sunrpc/clnt.c | |
parent | 354698b7d47165ed2f52d6c2bf682096a4cd71d1 (diff) | |
download | linux-stable-b68572e07c58324cb8c274f1d84a20cad479c2d3.tar.gz linux-stable-b68572e07c58324cb8c274f1d84a20cad479c2d3.tar.bz2 linux-stable-b68572e07c58324cb8c274f1d84a20cad479c2d3.zip |
NFS: change access cache to use 'struct cred'.
Rather than keying the access cache with 'struct rpc_cred',
use 'struct cred'. Then use cred_fscmp() to compare
credentials rather than comparing the raw pointer.
A benefit of this approach is that in the common case we avoid the
rpc_lookup_cred_nonblock() call which can be slow when the cred cache is large.
This also keeps many fewer items pinned in the rpc cred cache, so the
cred cache is less likely to get large.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
0 files changed, 0 insertions, 0 deletions