From: Nishanth Aravamudan Date: Wed, 13 Feb 2008 23:03:19 +0000 (-0800) Subject: hugetlb: fix overcommit locking X-Git-Tag: v2.6.25-rc2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=064d9efe947542097be669581f82d6b097e81d1a;p=pandora-kernel.git 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 Reported-by: Miles Lane Cc: Adam Litke Cc: David Gibson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed