Re: [Xenomai-core] [BUG] Lock stealing is borken

2008-08-20 Thread Philippe Gerum
Jan Kiszka wrote: > Philippe Gerum wrote: >> Jan Kiszka wrote: >>> Philippe Gerum wrote: Jan Kiszka wrote: > Philippe Gerum wrote: >> Jan Kiszka wrote: >>> Hi, >>> >>> bad news, everyone :(. According to the result of some lengthy debug >>> session with a customer and s

Re: [Xenomai-core] [PATCH] Clean up XNWAKEN / wwake tracking

2008-08-20 Thread Gilles Chanteperdrix
Jan Kiszka wrote: > + /* We are awake, no one must steal our lock anymore. */ > + thread->wwake = NULL; > + This is wrong, whether or not no one must steal our lock anymore will be decided at the "redo" label, when we "test and set", the synch owner. --

Re: [Xenomai-core] [PATCH] Clean up XNWAKEN / wwake tracking

2008-08-20 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> +/* We are awake, no one must steal our lock anymore. */ >> +thread->wwake = NULL; >> + > > This is wrong, whether or not no one must steal our lock anymore will be > decided at the "redo" label, when we "test and set", the synch owner. >

Re: [Xenomai-core] [BUG] Lock stealing is borken

2008-08-20 Thread Jan Kiszka
Philippe Gerum wrote: > Jan Kiszka wrote: >> Philippe Gerum wrote: >>> Jan Kiszka wrote: Philippe Gerum wrote: > Jan Kiszka wrote: >> Philippe Gerum wrote: >>> Jan Kiszka wrote: Hi, bad news, everyone :(. According to the result of some lengthy debug

Re: [Xenomai-core] [PATCH] Clean up XNWAKEN / wwake tracking

2008-08-20 Thread Jan Kiszka
Gilles Chanteperdrix wrote: > Jan Kiszka wrote: >> +/* We are awake, no one must steal our lock anymore. */ >> +thread->wwake = NULL; >> + > > This is wrong, whether or not no one must steal our lock anymore will be > decided at the "redo" label, when we "test and set", the synch owner. >