[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090624091316.73D0F4059B@magilla.sf.frob.com>
Date: Wed, 24 Jun 2009 02:13:16 -0700 (PDT)
From: Roland McGrath <roland@...hat.com>
To: Oleg Nesterov <oleg@...hat.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Ingo Molnar <mingo@...e.hu>,
Ratan Nalumasu <rnalumasu@...il.com>,
Vitaly Mayatskikh <vmayatsk@...hat.com>,
linux-kernel@...r.kernel.org
Subject: Re: [RFC,PATCH 2/2] change __wake_up_parent() to use filtered wakeup
Looks good, I'm glad to see this revived.
I note that even simpler than eligible_child() is just:
if ((wo->wo_flags & __WNOTHREAD) && wo->child_wait.private != p->parent)
return 0;
IIRC that is the test that Ratan's original patch used to address the
particular application usage that first troubled him. But probably this
is already what you meant by "more clever later" (and ->parent is perhaps
not right in all cases there).
Your two patches as they are look safe and useful to me and I hope they can
go in soon.
Thanks,
Roland
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists