[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180319151343.GK2943022@devbig577.frc2.facebook.com>
Date: Mon, 19 Mar 2018 08:13:43 -0700
From: Tejun Heo <tj@...nel.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Kirill Tkhai <ktkhai@...tuozzo.com>, cl@...ux.com,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] percpu: Allow to kill tasks doing pcpu_alloc() and
waiting for pcpu_balance_workfn()
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
Powered by blists - more mailing lists