From: Andi Kleen Date: Wed, 16 Dec 2009 11:20:00 +0000 (+0100) Subject: HWPOISON: Use get_user_page_fast in hwpoison madvise X-Git-Tag: v2.6.33-rc1~45^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d15f107d97bd74c74d8f5144843d372666ddbdac;p=pandora-kernel.git HWPOISON: Use get_user_page_fast in hwpoison madvise The previous version didn't take the mmap_sem before calling gup(), which is racy. Use get_user_pages_fast() instead which doesn't need any locks. This is also faster of course, but then it doesn't really matter because this is just a testing path. Based on report from Nick Piggin. Cc: npiggin@suse.de Signed-off-by: Andi Kleen --- Reading git-diff-tree failed