mm: hugetlb: fix non-atomic enqueue of huge page
authorHillf Danton <dhillf@gmail.com>
Wed, 28 Dec 2011 23:57:16 +0000 (15:57 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:17:22 +0000 (14:17 -0800)
commit82b34c64333393dc83d2c892114c9fb5cf432ea4
treec283e587862caaf00568e3eb749d709ad90eac51
parentf40c06e7f41a1489e9c75619d2e4d40a23d915b4
mm: hugetlb: fix non-atomic enqueue of huge page

commit b0365c8d0cb6e79eb5f21418ae61ab511f31b575 upstream.

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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/hugetlb.c