diff options
| author | Nishanth Aravamudan <[email protected]> | 2008-02-08 12:18:18 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-02-08 17:22:23 +0000 |
| commit | a3d0c6aa1bb342b9b2c7b123b52ac2f48a4d4d0a (patch) | |
| tree | 0c6766dd2add1f08c6153769c655e46ddff82a42 /fs/proc/array.c | |
| parent | inotify: fix check for one-shot watches before destroying them (diff) | |
| download | kernel-a3d0c6aa1bb342b9b2c7b123b52ac2f48a4d4d0a.tar.gz kernel-a3d0c6aa1bb342b9b2c7b123b52ac2f48a4d4d0a.zip | |
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 <[email protected]>
Acked-by: Adam Litke <[email protected]>
Cc: David Gibson <[email protected]>
Cc: William Lee Irwin III <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
