From: Michal Schmidt Date: Wed, 6 Feb 2008 09:37:07 +0000 (-0800) Subject: proc: loadavg reading race X-Git-Tag: v2.6.25-rc1~723 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07a154b2bb9b528a39ddc777399482c1fa27fdb8;p=pandora-kernel.git proc: loadavg reading race The avenrun[] values are supposed to be protected by xtime_lock. loadavg_read_proc does not use it. Theoretically this may result in an occasional glitch when the value read from /proc/loadavg would be as much as 1<<11 times higher than it should be. Signed-off-by: Michal Schmidt Cc: Thomas Gleixner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed