]> git.baikalelectronics.ru Git - kernel.git/commit
vmscan: protect zone rotation stats by lru lock
authorJohannes Weiner <hannes@saeurebad.de>
Mon, 1 Dec 2008 02:00:35 +0000 (03:00 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 1 Dec 2008 15:58:06 +0000 (07:58 -0800)
commit8a4bedecd364976f00b02a3b504f0eec3572ee47
tree4dd97b3090d314b42f793a48251497f34835a5e8
parentf26ba91327af44d4de6870b1ffe6435ec920c89d
vmscan: protect zone rotation stats by lru lock

The zone's rotation statistics must not be accessed without the
corresponding LRU lock held.  Fix an unprotected write in
shrink_active_list().

Acked-by: Rik van Riel <riel@redhat.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Johannes Weiner <hannes@saeurebad.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmscan.c