]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hwpoison: don't need to hold compound lock for hugetlbfs page
authorWanpeng Li <liwanp@linux.vnet.ibm.com>
Wed, 11 Sep 2013 21:22:52 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:08 +0000 (15:58 -0700)
commit5e4021e53ab02815fa58badc2b1d57a6b0cca955
treea72e82c0c3394cf84b3ff8698134ff124a61b491
parentb75690ed50e46a9585fa9a82bf1055ecf3f33db4
mm/hwpoison: don't need to hold compound lock for hugetlbfs page

compound lock is introduced by commit 70a0d0ca6("thp: compound_lock."), it
is used to serialize put_page against __split_huge_page_refcount().  In
addition, transparent hugepages will be splitted in hwpoison handler and
just one subpage will be poisoned.  There is unnecessary to hold compound
lock for hugetlbfs page.  This patch replace compound_trans_order by
compond_order in the place where the page is hugetlbfs page.

Signed-off-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Tony Luck <tony.luck@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
mm/memory-failure.c