]> git.baikalelectronics.ru Git - kernel.git/commit
mm: migrate: hugetlb: putback destination hugepage to active list
authorNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Tue, 22 Sep 2015 21:59:14 +0000 (14:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Sep 2015 22:09:53 +0000 (15:09 -0700)
commit14d1497c7228374486e11f45df83d6b06a000359
treed733e970440cbe96dc3fe78cbaf56b1581eb036b
parent35885f053e05f4bc5f90084b35539f27dbec08a2
mm: migrate: hugetlb: putback destination hugepage to active list

Since commit d83bc01115f2 ("mm: hugetlb: introduce page_huge_active")
each hugetlb page maintains its active flag to avoid a race condition
betwe= en multiple calls of isolate_huge_page(), but current kernel
doesn't set the f= lag on a hugepage allocated by migration because the
proper putback routine isn= 't called.  This means that users could
still encounter the race referred to by d83bc01115f2 in this special
case, so this patch fixes it.

Fixes: d83bc01115f2 ("mm: hugetlb: introduce page_huge_active")
Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: <stable@vger.kernel.org> [4.1.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/migrate.c