Nishanth Aravamudan 064d9efe94 hugetlb: fix overcommit locking
proc_doulongvec_minmax() calls copy_to_user()/copy_from_user(), so we can't
hold hugetlb_lock over the call.  Use a dummy variable to store the sysctl
result, like in hugetlb_sysctl_handler(), then grab the lock to update
nr_overcommit_huge_pages.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Reported-by: Miles Lane <miles.lane@gmail.com>
Cc: Adam Litke <agl@us.ibm.com>
Cc: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-13 16:21:18 -08:00
..
2008-02-13 16:21:18 -08:00
2008-02-05 09:44:18 -08:00
2008-02-13 16:21:18 -08:00
2008-02-05 09:44:19 -08:00
2008-02-07 08:42:18 -08:00
2008-02-09 11:08:33 -08:00
2007-10-20 01:27:18 +02:00
2008-02-08 18:57:39 -08:00
2007-10-18 14:37:31 -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-09 11:08:33 -08:00
2008-02-08 09:22:41 -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