diff options
| author | Adam Litke <[email protected]> | 2008-04-28 09:12:20 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-04-28 15:58:19 +0000 |
| commit | 19fc3f0acde32636529969570055c7e2a744787c (patch) | |
| tree | abcd29adbebe027eb2f3f13770e63662c22c7975 /lib/vsprintf.c | |
| parent | mm: try both endianess when checking for endianess (diff) | |
| download | kernel-19fc3f0acde32636529969570055c7e2a744787c.tar.gz kernel-19fc3f0acde32636529969570055c7e2a744787c.zip | |
hugetlb: decrease hugetlb_lock cycling in gather_surplus_huge_pages
To reduce hugetlb_lock acquisitions and releases when freeing excess surplus
pages, scan the page list in two parts. First, transfer the needed pages to
the hugetlb pool. Then drop the lock and free the remaining pages back to the
buddy allocator.
In the common case there are zero excess pages and no lock operations are
required.
Thanks Mel Gorman for this improvement.
Signed-off-by: Adam Litke <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: William Lee Irwin III <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: David Gibson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/vsprintf.c')
0 files changed, 0 insertions, 0 deletions
