[PATCH 1/1] powerpc: get_wchan(): solve possible race scenario due to parallel wakeup

2016-04-19 Thread Kautuk Consul
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

[PATCH 1/1] powerpc: get_wchan(): solve possible race scenario due to parallel wakeup

2016-04-19 Thread Kautuk Consul
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

Re: [PATCH 1/1] do_exit(): Solve possibility of BUG() due to race with try_to_wake_up()

2014-08-25 Thread Kautuk Consul
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

[PATCH 1/1] do_exit(): Solve possibility of BUG() due to race with try_to_wake_up()

2014-08-25 Thread Kautuk Consul
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

[PATCH 1/1] do_exit(): Solve possibility of BUG() due to race with try_to_wake_up()

2014-08-25 Thread Kautuk Consul
) 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

Re: [PATCH 1/1] do_exit(): Solve possibility of BUG() due to race with try_to_wake_up()

2014-08-25 Thread Kautuk Consul
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

Re: [QUERY]: Understanding the calculations in mm/page-writeback.c

2012-07-24 Thread Kautuk Consul
> > 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

Re: [QUERY]: Understanding the calculations in mm/page-writeback.c

2012-07-24 Thread Kautuk Consul
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