From: NeilBrown Date: Mon, 4 Aug 2014 06:24:00 +0000 (+1000) Subject: SUNRPC: remove all refcounting of groupinfo from rpcauth_lookupcred X-Git-Tag: omap-for-v3.17/fixes-against-rc2~82^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=122a8cda6a9a3594c4737570f5cd81636bcd20cf;p=pandora-kernel.git 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 Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed