Revision 23918b03060f6e572168fdde1798a905679d2e06 authored by Trond Myklebust on 20 November 2008, 21:06:21 UTC, committed by Linus Torvalds on 20 November 2008, 21:17:40 UTC
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 <Trond.Myklebust@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 0cb39aa
History
File Mode Size
mpu401
opl3
opl4
pcsp
vx
Kconfig -rw-r--r-- 5.3 KB
Makefile -rw-r--r-- 723 bytes
dummy.c -rw-r--r-- 20.1 KB
ml403-ac97cr.c -rw-r--r-- 40.2 KB
mtpav.c -rw-r--r-- 20.0 KB
mts64.c -rw-r--r-- 26.7 KB
pcm-indirect2.c -rw-r--r-- 16.8 KB
pcm-indirect2.h -rw-r--r-- 5.1 KB
portman2x4.c -rw-r--r-- 25.2 KB
serial-u16550.c -rw-r--r-- 31.0 KB
virmidi.c -rw-r--r-- 5.6 KB

back to top