From: Kirill A. Shutemov Date: Wed, 12 Dec 2012 21:51:14 +0000 (-0800) Subject: thp: avoid race on multiple parallel page faults to the same page X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~33^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ea41e6210fea3b234b6cb3e9443e75975850bbf;p=pandora-kernel.git thp: avoid race on multiple parallel page faults to the same page pmd value is stable only with mm->page_table_lock taken. After taking the lock we need to check that nobody modified the pmd before changing it. Signed-off-by: Kirill A. Shutemov Cc: Jiri Slaby Cc: David Rientjes Reviewed-by: Bob Liu Cc: Andrea Arcangeli Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed