Re: [PATCH] coredump: fix unfreezable coredumping task

2016-11-08 Thread Andrey Ryabinin
On 11/08/2016 01:26 AM, Andrew Morton wrote: > On Fri, 30 Sep 2016 11:50:34 +0300 Andrey Ryabinin > wrote: > >> It could be not possible to freeze coredumping task when it waits >> for 'core_state->startup' completion, because threads are frozen >> in get_signal() before they got a chance to com

Re: [PATCH] coredump: fix unfreezable coredumping task

2016-11-07 Thread Andrew Morton
On Fri, 30 Sep 2016 11:50:34 +0300 Andrey Ryabinin wrote: > It could be not possible to freeze coredumping task when it waits > for 'core_state->startup' completion, because threads are frozen > in get_signal() before they got a chance to complete 'core_state->startup'. > > Use freezer_do_not_c

Re: [PATCH] coredump: fix unfreezable coredumping task

2016-11-07 Thread Andrey Ryabinin
On 09/30/2016 11:50 AM, Andrey Ryabinin wrote: > It could be not possible to freeze coredumping task when it waits > for 'core_state->startup' completion, because threads are frozen > in get_signal() before they got a chance to complete 'core_state->startup'. > > Use freezer_do_not_count() to tell

Re: [PATCH] coredump: fix unfreezable coredumping task

2016-10-05 Thread Michal Hocko
On Tue 04-10-16 18:13:05, Oleg Nesterov wrote: > On 10/04, Michal Hocko wrote: > > > > On Fri 30-09-16 14:47:41, Oleg Nesterov wrote: > > > On 09/30, Andrey Ryabinin wrote: > > > > > > > > @@ -423,7 +424,9 @@ static int coredump_wait(int exit_code, struct > > > > core_state *core_state) > > > >

Re: [PATCH] coredump: fix unfreezable coredumping task

2016-10-04 Thread Oleg Nesterov
On 10/04, Michal Hocko wrote: > > On Fri 30-09-16 14:47:41, Oleg Nesterov wrote: > > On 09/30, Andrey Ryabinin wrote: > > > > > > @@ -423,7 +424,9 @@ static int coredump_wait(int exit_code, struct > > > core_state *core_state) > > > if (core_waiters > 0) { > > > struct core_thread *ptr

Re: [PATCH] coredump: fix unfreezable coredumping task

2016-10-04 Thread Michal Hocko
On Fri 30-09-16 14:47:41, Oleg Nesterov wrote: > On 09/30, Andrey Ryabinin wrote: > > > > @@ -423,7 +424,9 @@ static int coredump_wait(int exit_code, struct > > core_state *core_state) > > if (core_waiters > 0) { > > struct core_thread *ptr; > > > > + freezer_do_not_cou

Re: [PATCH] coredump: fix unfreezable coredumping task

2016-10-03 Thread Pavel Machek
On Fri 2016-09-30 11:50:34, Andrey Ryabinin wrote: > It could be not possible to freeze coredumping task when it waits > for 'core_state->startup' completion, because threads are frozen > in get_signal() before they got a chance to complete 'core_state->startup'. > > Use freezer_do_not_count() to

Re: [PATCH] coredump: fix unfreezable coredumping task

2016-09-30 Thread Oleg Nesterov
On 09/30, Andrey Ryabinin wrote: > > @@ -423,7 +424,9 @@ static int coredump_wait(int exit_code, struct core_state > *core_state) > if (core_waiters > 0) { > struct core_thread *ptr; > > + freezer_do_not_count(); > wait_for_completion(&core_state->st

[PATCH] coredump: fix unfreezable coredumping task

2016-09-30 Thread Andrey Ryabinin
It could be not possible to freeze coredumping task when it waits for 'core_state->startup' completion, because threads are frozen in get_signal() before they got a chance to complete 'core_state->startup'. Use freezer_do_not_count() to tell freezer to ignore coredumping task while it waits for co

Re: [PATCH] coredump: fix unfreezable coredumping task

2016-09-30 Thread Andrey Ryabinin
On 09/30/2016 11:50 AM, Andrey Ryabinin wrote: > It could be not possible to freeze coredumping task when it waits > for 'core_state->startup' completion, because threads are frozen > in get_signal() before they got a chance to complete 'core_state->startup'. > > Use freezer_do_not_count() to te