All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH 0/2] xen/locks: fix preempt disabling in lock handling
@ 2020-03-13  8:05 Juergen Gross
  2020-03-13  8:05 ` [Xen-devel] [PATCH 1/2] xen/rwlocks: call preempt_disable() when taking a rwlock Juergen Gross
  2020-03-13  8:05 ` [Xen-devel] [PATCH 2/2] xen/spinlocks: fix placement of preempt_[dis|en]able() Juergen Gross
  0 siblings, 2 replies; 15+ messages in thread
From: Juergen Gross @ 2020-03-13  8:05 UTC (permalink / raw)
  To: xen-devel
  Cc: Juergen Gross, Stefano Stabellini, Julien Grall, Wei Liu,
	Andrew Cooper, Ian Jackson, George Dunlap, Jan Beulich

Xen's rwlocks don't disable preemption at all, while spinlocks are
doing it only after obtaining the lock.

While not really critical, it is wrong.

This series fixes that.

Juergen Gross (2):
  xen/rwlocks: call preempt_disable() when taking a rwlock
  xen/spinlocks: fix placement of preempt_[dis|en]able()

 xen/common/spinlock.c    |  9 ++++++---
 xen/include/xen/rwlock.h | 18 +++++++++++++++++-
 2 files changed, 23 insertions(+), 4 deletions(-)

-- 
2.16.4


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

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

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

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-13  8:05 [Xen-devel] [PATCH 0/2] xen/locks: fix preempt disabling in lock handling Juergen Gross
2020-03-13  8:05 ` [Xen-devel] [PATCH 1/2] xen/rwlocks: call preempt_disable() when taking a rwlock Juergen Gross
2020-03-13  8:48   ` Jan Beulich
2020-03-13 10:02     ` Julien Grall
2020-03-13 10:02   ` Julien Grall
2020-03-13 10:15     ` Jürgen Groß
2020-03-13 10:31       ` Jan Beulich
2020-03-13 10:40       ` Julien Grall
2020-03-13 11:23         ` Jürgen Groß
2020-03-13 11:39           ` Julien Grall
2020-03-13 12:05             ` Jürgen Groß
2020-03-13  8:05 ` [Xen-devel] [PATCH 2/2] xen/spinlocks: fix placement of preempt_[dis|en]able() Juergen Gross
2020-03-13  8:55   ` Jan Beulich
2020-03-13  9:00     ` Jürgen Groß
2020-03-13  9:44       ` Julien Grall

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.