commit | 122a8cda6a9a3594c4737570f5cd81636bcd20cf | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Mon Aug 04 16:24:00 2014 +1000 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Mon Aug 04 09:22:08 2014 -0400 |
tree | 75d8f337b22e59e70d31670a7ebdbd47a8c00412 | |
parent | 50d77739fa1972030daf1c8902404551e49bf232 [diff] |
SUNRPC: remove all refcounting of groupinfo from rpcauth_lookupcred current_cred() can only be changed by 'current', and cred->group_info is never changed. If a new group_info is needed, a new 'cred' is created. Consequently it is always safe to access current_cred()->group_info without taking any further references. So drop the refcounting and the incorrect rcu_dereference(). Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>