From: KAMEZAWA Hiroyuki Date: Fri, 31 Aug 2007 06:56:21 +0000 (-0700) Subject: fix rcu_read_lock() in page migraton X-Git-Tag: v2.6.23-rc5~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=989f89c57e6361e7d16fbd9572b5da7d313b073d;p=pandora-kernel.git fix rcu_read_lock() in page migraton In migration fallback path, write_page() or lock_page() will be called. This causes sleep with holding rcu_read_lock(). For avoding that, just do rcu_lock if the page is Anon.(this is enough.) Signed-off-by: KAMEZAWA Hiroyuki Acked-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed