spinlocks: in debug builds store cpu holding the lock
authorJuergen Gross <jgross@suse.com>
Tue, 17 Sep 2019 14:07:11 +0000 (16:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Sep 2019 14:07:11 +0000 (16:07 +0200)
commit80cba391a35992216ec28370f75538a056559aa4
tree5cd250de4c5b697c655391ccd1af9fbea05b21a0
parent27ddc58d42a7848dbe60ba9f127ddd052906d487
spinlocks: in debug builds store cpu holding the lock

Add the cpu currently holding the lock to struct lock_debug. This makes
analysis of locking errors easier and it can be tested whether the
correct cpu is releasing a lock again.

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