Nishanth Aravamudan a3d0c6aa1b hugetlb: add locking for overcommit sysctl
When I replaced hugetlb_dynamic_pool with nr_overcommit_hugepages I used
proc_doulongvec_minmax() directly.  However, hugetlb.c's locking rules
require that all counter modifications occur under the hugetlb_lock.  Add a
callback into the hugetlb code similar to the one for nr_hugepages.  Grab
the lock around the manipulation of nr_overcommit_hugepages in
proc_doulongvec_minmax().

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Acked-by: Adam Litke <agl@us.ibm.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: William Lee Irwin III <wli@holomorphy.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-08 09:22:23 -08:00
..
2008-02-07 08:42:19 -08:00
2008-02-05 09:44:18 -08:00
2008-02-05 09:44:19 -08:00
2008-02-07 08:42:18 -08:00
2007-10-20 01:27:18 +02:00
2007-02-15 09:57:03 -08:00
2008-02-06 22:39:44 +01:00
2007-10-18 14:37:31 -07:00
2007-05-21 09:18:19 -07:00
2008-02-05 09:44:19 -08:00
2007-10-20 01:27:18 +02:00
2007-10-17 08:42:45 -07:00
2008-02-07 08:42:20 -08:00
2008-02-07 17:52:39 -08:00
2008-02-07 08:42:20 -08:00
2008-02-07 08:42:19 -08:00
2007-11-14 18:45:41 -08:00
2008-02-05 09:44:18 -08:00