]> git.neil.brown.name Git - history.git/commit
[PATCH] fix a page dirtying race in vmscan.c
authorAndrew Morton <akpm@digeo.com>
Sat, 21 Dec 2002 09:07:00 +0000 (01:07 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 21 Dec 2002 09:07:00 +0000 (01:07 -0800)
commit985babe8b4a9cedc55a3c8bdd8634fdbb483d2bc
treec6b96e573fbfa37c77404b374ad67025731217d5
parente101875d0b0c0a4a3d2b99c017ad1c8e21b3dd7f
[PATCH] fix a page dirtying race in vmscan.c

There's a small window in which another CPU could dirty the page after
we've cleaned it, and before we've moved it to mapping->dirty_pages().
The end result is a dirty page on mapping->locked_pages, which is
wrong.

So take mapping->page_lock before clearing the dirty bit.
mm/vmscan.c