From: Trond Myklebust Date: Thu, 20 Nov 2008 21:06:21 +0000 (-0500) Subject: SUNRPC: Fix a performance regression in the RPC authentication code X-Git-Tag: v2.6.28-rc6~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23918b03060f6e572168fdde1798a905679d2e06;p=pandora-kernel.git SUNRPC: Fix a performance regression in the RPC authentication code Fix a regression reported by Max Kellermann whereby kernel profiling showed that his clients were spending 45% of their time in rpcauth_lookup_credcache. It turns out that although his processes had identical uid/gid/groups, generic_match() was failing to detect this, because the task->group_info pointers were not shared. This again lead to the creation of a huge number of identical credentials at the RPC layer. The regression is fixed by comparing the contents of task->group_info if the actual pointers are not identical. Signed-off-by: Trond Myklebust Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed