[PATCH] pagecache locking bugfix
authorAndrew Morton <akpm@zip.com.au>
Thu, 18 Apr 2002 06:28:44 +0000 (23:28 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 18 Apr 2002 06:28:44 +0000 (23:28 -0700)
commitcff6ab5eb24fa2e4fc44731edc6c1ba4187a1420
treed0a3394bda9b3cb22b52dac812c45528228a615b
parent0d9bef5551961a4f274b5512a48530ec9b1b4044
[PATCH] pagecache locking bugfix

The bug which Anton found.  On the
find_or_create_page->__find_lock_page path we're performing
a read_unlock of an rwlock which is held for writing.

The patch converts that to using a write_lock throughout.

Which penalises find_lock_page() a bit.  If it shows up
on profiles then we can clone __find_lock_page() and
use read_lock()s, but for now I'd opt for saving the
cache footprint.
mm/filemap.c