diff options
author | Dennis Zhou <dennis@kernel.org> | 2019-02-25 20:03:50 +0300 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2019-03-13 22:25:31 +0300 |
commit | 8744d859427c6198dce490619809754336954297 (patch) | |
tree | 4d0a28eaac997430e93821ed4c6b82bb66b9a4f4 /mm/percpu-km.c | |
parent | 3e54097beb228ddcd73bb2fd18bafaa1062e9fe4 (diff) | |
download | linux-8744d859427c6198dce490619809754336954297.tar.xz |
percpu: relegate chunks unusable when failing small allocations
In certain cases, requestors of percpu memory may want specific
alignments. However, it is possible to end up in situations where the
contig_hint matches, but the alignment does not. This causes excess
scanning of chunks that will fail. To prevent this, if a small
allocation fails (< 32B), the chunk is moved to the empty list. Once an
allocation is freed from that chunk, it is placed back into rotation.
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'mm/percpu-km.c')
0 files changed, 0 insertions, 0 deletions