Skip to content

locking: Percpu-rwsem rewrite

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5locking/percpu-rwsem, lockdep: Make percpu-rwsem use its own lockdep_mapinclude/linux/percpu-rwsem.h kernel/cpu.c kernel/locking/percpu-rwsem.c +2 more+36 -173 replies
2/5locking/percpu-rwsem: Convert to boolinclude/linux/percpu-rwsem.h kernel/locking/percpu-rwsem.c+7 -70 replies
3/5locking/percpu-rwsem: Move __this_cpu_inc() into the slowpathinclude/linux/percpu-rwsem.h kernel/locking/percpu-rwsem.c+8 -40 replies
4/5locking/percpu-rwsem: Extract __percpu_down_read_trylock()kernel/locking/percpu-rwsem.c+14 -71 reply
5/5locking/percpu-rwsem: Remove the embedded rwseminclude/linux/percpu-rwsem.h include/linux/wait.h kernel/locking/percpu-rwsem.c +2 more+110 -7111 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchJuri Lelli
SeriesT-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] locking: Percpu-rwsem rewrite

Yet another version of the percpu-rwsem rewrite..

This one (ab)uses the waitqueue in an entirely different and unique way, but no longer shares it like it did. It retains the use of rcuwait for the writer-waiting-for-readers-to-complete condition.

This one should be FIFO fair with writer-stealing.

It seems to pass locktorture torture_type=percpu_rwsem_lock. But as always, this stuff is tricky, please look carefully.