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 15:33:32 -08:00
2008-02-09 11:08:34 -08:00
2008-02-09 18:24:41 +01:00
2008-02-13 16:20:35 +01:00
2008-02-08 15:33:32 -08:00
2008-02-13 16:21:18 -08:00
2008-02-03 17:19:47 +02:00
2008-01-31 17:40:18 +01:00
2008-02-06 10:41:16 -08:00