HWPOISON, hugetlb: add free check to dequeue_hwpoison_huge_page()
This check is necessary to avoid race between dequeue and allocation, which can cause a free hugepage to be dequeued twice and get kernel unstable. Signed-off-by:Naoya Horiguchi <n-horiguchi@ah.jp.nec.com> Signed-off-by:
Wu Fengguang <fengguang.wu@intel.com> Acked-by:
Mel Gorman <mel@csn.ul.ie> Reviewed-by:
Christoph Lameter <cl@linux.com> Signed-off-by:
Andi Kleen <ak@linux.intel.com>
Showing
Please register or sign in to comment