[Xen-devel] [PATCH v2 0/2] xen/locks: fix preempt disabling in lock handling

Juergen Gross posted 2 patches 4 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/20200313143755.31870-1-jgross@suse.com
xen/common/spinlock.c    |  9 ++++++---
xen/include/xen/rwlock.h | 18 ++++++++++++++++--
2 files changed, 22 insertions(+), 5 deletions(-)
[Xen-devel] [PATCH v2 0/2] xen/locks: fix preempt disabling in lock handling
Posted by Juergen Gross 4 years, 1 month ago
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.

Changes in V2:
- move the preempt_[dis|en]able() calls

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, 22 insertions(+), 5 deletions(-)

-- 
2.16.4


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