• NeilBrown's avatar
    NFS: pass cred explicitly for access tests · 73fbb3fa
    NeilBrown authored
    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 a future patch will remove the ->cred ref from nfs_access_entry.
    
    To prepare, change various functions to not assume there is a 'cred' in
    the nfs_access_entry, but to pass the cred around explicitly.
    Signed-off-by: default avatarNeilBrown <neilb@suse.de>
    Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    73fbb3fa
nfs3proc.c 26.4 KB