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-08 09:22:42 -08:00
2008-02-07 01:27:17 -05:00
2008-01-07 14:55:37 -08:00
2007-10-21 02:37:45 -04:00
2007-10-21 02:37:45 -04:00
2008-02-07 08:42:22 -08:00
2007-10-18 14:37:24 -07:00
2008-02-08 09:22:31 -08:00
2008-02-08 09:22:31 -08:00
2008-01-25 21:08:29 +01:00
2007-07-16 09:05:50 -07:00
2008-01-25 21:08:34 +01:00
2008-02-08 09:22:39 -08:00
2008-02-08 09:22:31 -08:00
2008-02-08 09:22:31 -08:00
2008-01-25 21:08:24 +01:00
2008-02-13 16:21:18 -08:00
2008-01-25 21:08:24 +01:00
2008-01-25 21:08:25 +01:00
2008-02-06 10:41:07 -08:00
2007-07-16 09:05:50 -07:00
2008-02-13 16:21:18 -08:00
2008-02-08 09:22:31 -08:00
2008-02-02 14:27:45 +11:00
2008-01-30 13:31:20 +01:00
2008-02-06 10:41:02 -08:00
2008-02-06 10:41:08 -08:00
2008-02-05 09:44:07 -08:00
2008-02-08 09:22:29 -08:00
2008-02-13 16:21:18 -08:00
2008-02-08 09:22:39 -08:00
2008-02-08 09:22:31 -08:00
2008-02-08 09:22:31 -08:00