Skip to content

Implement this_cpu_inc_return (and friends) and use it in various places

Christoph Lameter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9percpu: Generic support for this_cpu_add,sub,dec,inc_returninclude/linux/percpu.h+77 -01 reply
2/9x86: Support for this_cpu_add,sub,dec,inc_returnarch/x86/include/asm/percpu.h+46 -01 reply
3/9x86: Use this_cpu_inc_return for nmi counterarch/x86/kernel/apic/nmi.c+1 -23 replies
4/9vmstat: Use this_cpu_inc_return for vm statisticsmm/vmstat.c+2 -60 replies
5/9highmem: Use this_cpu_xx_return() operationsinclude/linux/highmem.h+8 -50 replies
6/9Taskstats: Use this_cpu_opskernel/taskstats.c+2 -32 replies
7/9fs: Use this_cpu_inc_return in buffer.cfs/buffer.c+1 -10 replies
8/9random: Use this_cpu_inc_returndrivers/char/random.c+1 -12 replies
9/9Xen: Use this_cpu_inc_returndrivers/xen/events.c+1 -10 replies

Reviews trailers per patch

3 of 9 patches have a Reviewed-by or Acked-by.

PatchTejun HeoMathieu DesnoyersPekka Enberg
1/9R-b R-b R-b R-b
2/9
3/9R-b R-b R-b
4/9R-b
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [cpuops inc_return V1 0/9] Implement this_cpu_inc_return (and friends) and use it in various places

Extend the this_cpu_ops infrastructure to support this_cpu_inc_return and then use the new functionality in various subsystems. Provide an optimize x86 implementation for these operations.

All these patches depends on the initial patch being applied first.

Patches have been reviewed a couple of times and I would suggest that they go through Tejun's percpu tree for merging.