]> git.neil.brown.name Git - history.git/commit
[PATCH] sys_set/getpriority PRIO_USER semantics fix and optimisation
authorPrasanna Meda <pmeda@akamai.com>
Thu, 2 Dec 2004 23:46:44 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 2 Dec 2004 23:46:44 +0000 (15:46 -0800)
commitb545069f74abe49d141e39151b9bf15f58ef26c7
treed4e8c0363d8f14e8007848f48c8bf3f3eeac9b8e
parentd20a8fb580008dd9f81797bb0bc479f1507b5c01
[PATCH] sys_set/getpriority PRIO_USER semantics fix and optimisation

This change brings the semantics equivalent to 2.4 and also to what the man
page says; Also optimises by avoiding unneeded lookup in uid cache, when
who is same as the current->uid.

sys_set/getpriority is rewritten in 2.5/2.6, perhaps while transitioning to
the pid maps.  It has now semantical bug, when uid is zero.  Note that akpm
also fixed refcount leak and locking in the new functions in changeset
http://linus.bkbits.net:8080/linux-2.5/cset@1.1608.10.84

Signed-off-by: <pmeda@akamai.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sys.c