aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNaoya Horiguchi <[email protected]>2010-09-08 10:19:37 +0900
committerAndi Kleen <[email protected]>2010-10-08 09:32:45 +0200
commita9869b837c098732bad84939015c0eb391b23e41 (patch)
tree00ba63997470724e2704c9b7c995c91672b53c7b /net/unix/af_unix.c
parent6de2b1aab94355482bd2accdc115666509667458 (diff)
hugetlb: move refcounting in hugepage allocation inside hugetlb_lock
Currently alloc_huge_page() raises page refcount outside hugetlb_lock. but it causes race when dequeue_hwpoison_huge_page() runs concurrently with alloc_huge_page(). To avoid it, this patch moves set_page_refcounted() in hugetlb_lock. Signed-off-by: Naoya Horiguchi <[email protected]> Signed-off-by: Wu Fengguang <[email protected]> Acked-by: Mel Gorman <[email protected]> Reviewed-by: Christoph Lameter <[email protected]> Signed-off-by: Andi Kleen <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions