All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH 0/2] smp: convert cpu_add_remove_lock int a rw lock
@ 2020-02-13 11:32 Roger Pau Monne
  2020-02-13 11:32 ` [Xen-devel] [PATCH 1/2] smp: convert the cpu maps lock into " Roger Pau Monne
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: Roger Pau Monne @ 2020-02-13 11:32 UTC (permalink / raw)
  To: xen-devel
  Cc: Stefano Stabellini, Julien Grall, Wei Liu, Konrad Rzeszutek Wilk,
	George Dunlap, Andrew Cooper, Ian Jackson, Jan Beulich,
	Roger Pau Monne

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(-)

-- 
2.25.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2020-02-21 13:06 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-13 11:32 [Xen-devel] [PATCH 0/2] smp: convert cpu_add_remove_lock int a rw lock Roger Pau Monne
2020-02-13 11:32 ` [Xen-devel] [PATCH 1/2] smp: convert the cpu maps lock into " Roger Pau Monne
2020-02-19 12:08   ` Julien Grall
2020-02-19 12:56   ` Jan Beulich
2020-02-19 13:19     ` Roger Pau Monné
2020-02-19 13:42       ` Jan Beulich
2020-02-19 14:38         ` Roger Pau Monné
2020-02-20  8:13   ` Jan Beulich
2020-02-20  8:27     ` Jürgen Groß
2020-02-20  8:36       ` Jan Beulich
2020-02-20  8:57         ` Julien Grall
2020-02-20  9:20           ` Roger Pau Monné
2020-02-13 11:32 ` [Xen-devel] [PATCH 2/2] smp: convert cpu_hotplug_begin into a blocking lock acquisition Roger Pau Monne
2020-02-19 12:59   ` Jan Beulich
2020-02-19 13:22     ` Roger Pau Monné
2020-02-19 13:44       ` Jan Beulich
2020-02-19 14:45         ` Roger Pau Monné
2020-02-19 14:57           ` Jan Beulich
2020-02-19 15:07             ` Andrew Cooper
2020-02-19 16:06               ` Jan Beulich
2020-02-19 16:26                 ` Roger Pau Monné
2020-02-19 17:06                   ` Jan Beulich
2020-02-19 16:54                 ` Andrew Cooper
2020-02-19 16:08               ` Roger Pau Monné
2020-02-19 17:03                 ` Jan Beulich
2020-02-20  8:16                   ` Jan Beulich
2020-02-21 10:23                     ` Roger Pau Monné
2020-02-21 13:06                       ` Jan Beulich
2020-02-19 14:58         ` Andrew Cooper
2020-02-19 12:22 ` [Xen-devel] [PATCH 0/2] smp: convert cpu_add_remove_lock int a rw lock Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.