Skip to content

smp: convert cpu_add_remove_lock int a rw lock

Roger Pau Monne xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 27 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2smp: convert the cpu maps lock into a rw lockxen/common/cpu.c xen/include/xen/cpu.h+19 -1610 replies
2/2smp: convert cpu_hotplug_begin into a blocking lock acquisitionxen/arch/x86/smpboot.c xen/common/cpu.c xen/include/xen/cpu.h+7 -1116 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJan BeulichJulien Grall
1/2Suggested-also-by R-b
2/2

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

Read the v1 thread

Cover letter [Xen-devel] [PATCH 0/2] smp: convert cpu_add_remove_lock int a rw lock

Hello,

The main aim of this series is to reduce the pressure around cpu_add_remove_lock by converting it into a rw lock. Most users of the lock want to take it in read mode, as they only care about the maps not changing.

Patch #2 makes the writers take the lock in blocking mode, this is mainly done to reduce the failure of the CPU plug/unplug operations, since the lock is more contended now and trylock can easily fail if there are readers.

Thanks, Roger.

Roger Pau Monne (2):
smp: convert the cpu maps lock into a rw lock
smp: convert cpu_hotplug_begin into a blocking lock acquisition

 xen/arch/x86/smpboot.c |  3 +--
 xen/common/cpu.c       | 29 ++++++++++++++++++-----------
 xen/include/xen/cpu.h  | 13 +++----------
 3 files changed, 22 insertions(+), 23 deletions(-)
Signature · 7 lines
2.25.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel