mm: hugetlb: fix non-atomic enqueue of huge page
commitb0365c8d0cb6e79eb5f21418ae61ab511f31b575
authorHillf Danton <dhillf@gmail.com>
Wed, 28 Dec 2011 23:57:16 +0000 (28 15:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Dec 2011 00:31:57 +0000 (29 16:31 -0800)
tree2e8abddb0f0f7829e48d00464f95b835bdb6ff51
parent34845636a184f3be91a531098192592cbe6db587
mm: hugetlb: fix non-atomic enqueue of huge page

If a huge page is enqueued under the protection of hugetlb_lock, then the
operation is atomic and safe.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: <stable@vger.kernel.org> [2.6.37+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c