Re: [PATCH] percpu: Allow to kill tasks doing pcpu_alloc() and waiting for pcpu_balance_workfn()
From: Tejun Heo
Date: Mon Mar 19 2018 - 11:13:54 EST
Hello, Andrew.
On Wed, Mar 14, 2018 at 03:22:03PM -0700, Andrew Morton wrote:
> hm. spose so. Maybe. Are there other ways? I assume the time is
> being spent in pcpu_create_chunk()? We could drop the mutex while
> running that stuff and take the appropriate did-we-race-with-someone
> testing after retaking it. Or similar.
I'm not sure that'd change much. Ultimately, isn't the choice between
being able to return NULL and waiting for more memory? If we decide
to return NULL, it doesn't make difference where we do that from,
right?
Thanks.
--
tejun