Re: [Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-09 Thread George Dunlap
On Fri, May 6, 2016 at 2:21 PM, Dario Faggioli wrote: > On Wed, 2016-05-04 at 18:34 +0100, George Dunlap wrote: >> On 04/05/16 18:21, Dario Faggioli wrote: >> > >> > After all, I'm fine with an ASSERT() too, but then I think we >> > should >> > add one to the same effect to csched_switch_sched() t

Re: [Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-06 Thread Wei Liu
On Fri, May 06, 2016 at 03:21:40PM +0200, Dario Faggioli wrote: > On Wed, 2016-05-04 at 18:34 +0100, George Dunlap wrote: > > On 04/05/16 18:21, Dario Faggioli wrote: > > >  > > > After all, I'm fine with an ASSERT() too, but then I think we > > > should > > > add one to the same effect to csched_s

Re: [Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-06 Thread Dario Faggioli
On Wed, 2016-05-04 at 18:34 +0100, George Dunlap wrote: > On 04/05/16 18:21, Dario Faggioli wrote: > >  > > After all, I'm fine with an ASSERT() too, but then I think we > > should > > add one to the same effect to csched_switch_sched() too. > Well an ASSERT() is sort of like a comment, in that if

Re: [Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-04 Thread George Dunlap
On 04/05/16 18:21, Dario Faggioli wrote: > On Wed, 2016-05-04 at 18:05 +0100, George Dunlap wrote: >> On 04/05/16 16:58, Dario Faggioli wrote: >>> On Wed, 2016-05-04 at 16:11 +0100, George Dunlap wrote: >>> There are quite a few other similar cases all around scheduling >>> code. >>> Some of them h

Re: [Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-04 Thread Dario Faggioli
On Wed, 2016-05-04 at 18:05 +0100, George Dunlap wrote: > On 04/05/16 16:58, Dario Faggioli wrote: > > On Wed, 2016-05-04 at 16:11 +0100, George Dunlap wrote: > > There are quite a few other similar cases all around scheduling > > code. > > Some of them have comments, none has ASSERT()-s, and I thi

Re: [Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-04 Thread George Dunlap
On 04/05/16 16:58, Dario Faggioli wrote: > On Wed, 2016-05-04 at 16:11 +0100, George Dunlap wrote: >> On 03/05/16 22:46, Dario Faggioli wrote: >>> >>> In fact, interrupts are already disabled when calling >>> the hook from schedule_cpu_switch(), and hence using >>> anything different than just spin

Re: [Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-04 Thread Dario Faggioli
On Wed, 2016-05-04 at 16:11 +0100, George Dunlap wrote: > On 03/05/16 22:46, Dario Faggioli wrote: > > > > In fact, interrupts are already disabled when calling > > the hook from schedule_cpu_switch(), and hence using > > anything different than just spin_lock() is wrong (and > > ASSERT()-s in deb

Re: [Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-04 Thread George Dunlap
On 03/05/16 22:46, Dario Faggioli wrote: > In fact, interrupts are already disabled when calling > the hook from schedule_cpu_switch(), and hence using > anything different than just spin_lock() is wrong (and > ASSERT()-s in debug builds) or unnecessary. > > Signed-off-by: Dario Faggioli Good ca

Re: [Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-04 Thread Dario Faggioli
On Wed, 2016-05-04 at 02:48 -0600, Jan Beulich wrote: > > > > On 03.05.16 at 23:46, wrote: > > In fact, interrupts are already disabled when calling > > the hook from schedule_cpu_switch(), and hence using > > anything different than just spin_lock() is wrong (and > > ASSERT()-s in debug builds) o

Re: [Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-04 Thread Jan Beulich
>>> On 03.05.16 at 23:46, wrote: > In fact, interrupts are already disabled when calling > the hook from schedule_cpu_switch(), and hence using > anything different than just spin_lock() is wrong (and > ASSERT()-s in debug builds) or unnecessary. Well, this is a little too broad a statement: spin

[Xen-devel] [PATCH for 4.7 1/4] xen: sched: avoid spuriously re-enabling IRQs in csched2_switch_sched()

2016-05-03 Thread Dario Faggioli
In fact, interrupts are already disabled when calling the hook from schedule_cpu_switch(), and hence using anything different than just spin_lock() is wrong (and ASSERT()-s in debug builds) or unnecessary. Signed-off-by: Dario Faggioli --- Cc: George Dunlap Cc: Wei Liu --- xen/common/sched_cre