[lkml]   [2018]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [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,



 \ /
  Last update: 2018-03-19 16:14    [W:0.079 / U:3.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site