summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDennis Zhou <dennis@kernel.org>2019-02-25 09:03:50 -0800
committerDennis Zhou <dennis@kernel.org>2019-03-13 12:25:31 -0700
commit8744d859427c6198dce490619809754336954297 (patch)
tree4d0a28eaac997430e93821ed4c6b82bb66b9a4f4 /scripts
parent3e54097beb228ddcd73bb2fd18bafaa1062e9fe4 (diff)
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 'scripts')
0 files changed, 0 insertions, 0 deletions