mbox series

[0/2] xen/locks: fix preempt disabling in lock handling

Message ID 20200313080517.28728-1-jgross@suse.com (mailing list archive)
Headers show
Series xen/locks: fix preempt disabling in lock handling | expand

Message

Jürgen Groß March 13, 2020, 8:05 a.m. UTC
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(-)