diff options
author | 2021-09-28 09:47:57 +1000 | |
---|---|---|
committer | 2022-01-06 14:00:20 -0500 | |
commit | 6238aec83f3fb12132f964937e5bbcf248fea8f9 (patch) | |
tree | 1102e11d702034aee145eb5cab5d68f2261afb33 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | NFS: pass cred explicitly for access tests (diff) | |
download | linux-dev-6238aec83f3fb12132f964937e5bbcf248fea8f9.tar.xz linux-dev-6238aec83f3fb12132f964937e5bbcf248fea8f9.zip |
NFS: don't store 'struct cred *' in struct nfs_access_entry
Storing the 'struct cred *' in nfs_access_entry is problematic.
An active 'cred' can keep a 'struct key *' active, and a quota is
imposed on the number of such keys that a user can maintain.
Cached 'nfs_access_entry' structs have indefinite lifetime, and having
these keep 'struct key's alive imposes on that quota.
So remove the 'struct cred *' and replace it with the fields we need:
kuid_t, kgid_t, and struct group_info *
This makes the 'struct nfs_access_entry' 64 bits larger.
New function "access_cmp" is introduced which is identical to
cred_fscmp() except that the second arg is an 'nfs_access_entry', rather
than a 'cred'
Fixes: b68572e07c58 ("NFS: change access cache to use 'struct cred'.")
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions