Add a check for p->state == TASK_RUNNING so that any wake-ups on
task_struct p in the interim lead to 0 being returned by get_wchan().
Signed-off-by: Kautuk Consul <kautuk.consul.1...@gmail.com>
---
arch/powerpc/kernel/process.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion
Add a check for p->state == TASK_RUNNING so that any wake-ups on
task_struct p in the interim lead to 0 being returned by get_wchan().
Signed-off-by: Kautuk Consul
---
arch/powerpc/kernel/process.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/ker
ned upon and not really acceptable nowadays).
I'll review those drivers for this kind of mistake.
On Mon, Aug 25, 2014 at 9:27 PM, Oleg Nesterov wrote:
> On 08/25, Kautuk Consul wrote:
>>
>> I encountered a BUG() scenario within do_exit() on an ARM system.
>>
>> The pro
his will involve lesser changes to the kernel core code.
ii) Any further sleeping primitives in the kernel also need not
suffer from
this kind of race scenario.
Signed-off-by: Kautuk Consul
---
kernel/exit.c | 10 ++
1 file changed, 6 insertions(+), 4 dele
) Any further sleeping primitives in the kernel also need not
suffer from
this kind of race scenario.
Signed-off-by: Kautuk Consul consul.kau...@gmail.com
---
kernel/exit.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/kernel/exit.c b
upon and not really acceptable nowadays).
I'll review those drivers for this kind of mistake.
On Mon, Aug 25, 2014 at 9:27 PM, Oleg Nesterov o...@redhat.com wrote:
On 08/25, Kautuk Consul wrote:
I encountered a BUG() scenario within do_exit() on an ARM system.
The problem is due to a race
>
> Here is the slides I used in LinuxCon Japan 2012, please feel free to
> ask more specific questions on it :)
>
> http://events.linuxfoundation.org/images/stories/pdf/lcjp2012_wu.pdf
>
Thanks for your help and early response !
I shall definitely study this and ping you as and when doubts start
Here is the slides I used in LinuxCon Japan 2012, please feel free to
ask more specific questions on it :)
http://events.linuxfoundation.org/images/stories/pdf/lcjp2012_wu.pdf
Thanks for your help and early response !
I shall definitely study this and ping you as and when doubts start
8 matches
Mail list logo