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)
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

diff --cc mm/vmscan.c
Simple merge