]> xenbits.xensource.com Git - people/pauldu/xen.git/commit
spinlocks: fix placement of preempt_[dis|en]able()
authorJuergen Gross <jgross@suse.com>
Mon, 16 Mar 2020 10:27:29 +0000 (11:27 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 16 Mar 2020 10:27:29 +0000 (11:27 +0100)
commit6b7860b5d04dfee4cbe0a64a4e9adc9832e2e73b
treecc8f94d3c594fa426ae842514bde8c280a22b5a5
parent12509bbeb9e386ca52ec46e23d1d540c6dc8d7d7
spinlocks: fix placement of preempt_[dis|en]able()

In case Xen ever gains preemption support the spinlock coding's
placement of preempt_disable() and preempt_enable() should be outside
of the locked section.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/spinlock.c