]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fix race in pagevec_strip?
authorChristoph Lameter <clameter@sgi.com>
Fri, 17 Mar 2006 07:04:07 +0000 (23:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 17 Mar 2006 15:51:25 +0000 (07:51 -0800)
commited6b301e335a90296182c1eb0e1c08ebf8000ce0
tree17035c1d501390f00efac6895ee663c45d4fb699
parentf74b2c74abc7d03589c859228ca57016f23d4eac
[PATCH] fix race in pagevec_strip?

We can call try_to_release_page() with PagePrivate off and a valid
page->mapping This may cause all sorts of trouble for the filesystem
*_releasepage() handlers.  XFS bombs out in that case.

Lock the page before checking for page private.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/swap.c