diff options
author | NeilBrown <neilb@suse.com> | 2018-12-03 03:30:31 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-12-19 21:52:46 +0300 |
commit | 2edd8d746e51229705367528e95e5b49bccfa76e (patch) | |
tree | 5c20f3219ac7c02daef784299bef2d4e467f9446 /net/dns_resolver | |
parent | d6efccd97e6de25e002d658593675ce8e07ceb8c (diff) | |
download | linux-2edd8d746e51229705367528e95e5b49bccfa76e.tar.xz |
SUNRPC: simplify auth_unix.
1/ discard 'struct unx_cred'. We don't need any data that
is not already in 'struct rpc_cred'.
2/ Don't keep these creds in a hash table. When a credential
is needed, simply allocate it. When not needed, discard it.
This can easily be faster than performing a lookup on
a shared hash table.
As the lookup can happen during write-out, use a mempool
to ensure forward progress.
This means that we cannot compare two credentials for
equality by comparing the pointers, but we never do that anyway.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/dns_resolver')
0 files changed, 0 insertions, 0 deletions