]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit2a1dc509747fdcfdf3a2df818a14908aed86c3d4
tree4dd97b3090d314b42f793a48251497f34835a5e8
parent33b07db9f38fe73b3895f8d4db8fdee03e3afec3
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