Re: [Xen-devel] [PATCHv1 3/4] spinlock: shrink struct lock_debug

2016-01-19 Thread Jan Beulich
>>> On 19.01.16 at 13:31, wrote: > On 18/12/15 16:58, Jan Beulich wrote: > On 18.12.15 at 15:09, wrote: >>> --- a/xen/common/spinlock.c >>> +++ b/xen/common/spinlock.c >>> @@ -16,7 +16,7 @@ static atomic_t spin_debug __read_mostly = ATOMIC_INIT(0); >>> >>> static void check_lock(struct l

Re: [Xen-devel] [PATCHv1 3/4] spinlock: shrink struct lock_debug

2016-01-19 Thread Jennifer Herbert
On 18/12/15 16:58, Jan Beulich wrote: On 18.12.15 at 15:09, wrote: --- a/xen/common/spinlock.c +++ b/xen/common/spinlock.c @@ -16,7 +16,7 @@ static atomic_t spin_debug __read_mostly = ATOMIC_INIT(0); static void check_lock(struct lock_debug *debug) { -int irq_safe = !local_irq_is_e

Re: [Xen-devel] [PATCHv1 3/4] spinlock: shrink struct lock_debug

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 15:09, wrote: > --- a/xen/common/spinlock.c > +++ b/xen/common/spinlock.c > @@ -16,7 +16,7 @@ static atomic_t spin_debug __read_mostly = ATOMIC_INIT(0); > > static void check_lock(struct lock_debug *debug) > { > -int irq_safe = !local_irq_is_enabled(); > +s16 irq_sa

[Xen-devel] [PATCHv1 3/4] spinlock: shrink struct lock_debug

2015-12-18 Thread David Vrabel
From: Jennifer Herbert Reduce the size of struct lock_debug so increases in other lock structures don't increase the size of struct domain too much. Signed-off-by: Jennifer Herbert Signed-off-by: David Vrabel --- xen/common/spinlock.c | 2 +- xen/include/xen/spinlock.h | 2 +- 2 files ch