mm: debug check for the fault vs invalidate race
authorNick Piggin <npiggin@suse.de>
Mon, 16 Jul 2007 06:38:12 +0000 (23:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:35 +0000 (09:05 -0700)
commit45426812d6b601430d560cb6049757b5b0bc71c4
tree64c8439a53f4ca402a9d7deb2a455aa0de08c8ea
parentf96efd585b8d847181f81bf16721f96ded18d9fe
mm: debug check for the fault vs invalidate race

Add a bugcheck for Andrea's pagefault vs invalidate race.  This is triggerable
for both linear and nonlinear pages with a userspace test harness (using
direct IO and truncate, respectively).

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/filemap.c