summaryrefslogtreecommitdiffstats
path: root/mm/percpu-km.c
diff options
context:
space:
mode:
authorDennis Zhou2019-02-25 18:03:50 +0100
committerDennis Zhou2019-03-13 20:25:31 +0100
commit8744d859427c6198dce490619809754336954297 (patch)
tree4d0a28eaac997430e93821ed4c6b82bb66b9a4f4 /mm/percpu-km.c
parentpercpu: manage chunks based on contig_bits instead of free_bytes (diff)
downloadkernel-qcow2-linux-8744d859427c6198dce490619809754336954297.tar.gz
kernel-qcow2-linux-8744d859427c6198dce490619809754336954297.tar.xz
kernel-qcow2-linux-8744d859427c6198dce490619809754336954297.zip
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