]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
mm: fix clear_page_dirty_for_io vs fault race
authorNick Piggin <npiggin@suse.de>
Thu, 19 Jul 2007 08:47:22 +0000 (01:47 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 19 Jul 2007 17:04:41 +0000 (10:04 -0700)
commit79352894b28550ee0eee919149f57626ec1b3572
tree849e6aa148c69b9df3920199255ca14792eeffa2
parent83c54070ee1a2d05c89793884bea1a03f2851ed4
mm: fix clear_page_dirty_for_io vs fault race

Fix msync data loss and (less importantly) dirty page accounting
inaccuracies due to the race remaining in clear_page_dirty_for_io().

The deleted comment explains what the race was, and the added comments
explain how it is fixed.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c
mm/page-writeback.c