https://github.com/torvalds/linux
Revision 3d80636a0d5f056ffc26472d05b6027a7a9f6e1c authored by Linus Torvalds on 17 October 2005, 00:36:06 UTC, committed by Linus Torvalds on 17 October 2005, 00:36:06 UTC
As noticed by Nick Piggin, we need to make sure that we check the page
count before we check for PageDirty, since the dirty check is only valid
if the count implies that we're the only possible ones holding the page.

We always did do this, but the code needs a read-memory-barrier to make
sure that the orderign is also honored by the CPU.

(The writer side is ordered due to the atomic decrement and test on the
page count, see the discussion on linux-kernel)

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 688ce17
History
Tip revision: 3d80636a0d5f056ffc26472d05b6027a7a9f6e1c authored by Linus Torvalds on 17 October 2005, 00:36:06 UTC
Fix memory ordering bug in page reclaim
Tip revision: 3d80636
File Mode Size
Documentation
arch
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.1 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 59.6 KB
Makefile -rw-r--r-- 42.4 KB
README -rw-r--r-- 14.4 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top