[PATCH 0/1] futex: don't spin waiting for PF_EXITING -> PF_EXITPIDONE transition

2015-02-16 Thread Oleg Nesterov
On 02/02, Oleg Nesterov wrote: > > And another question. Lets forget about this ->mm check. I simply can not > understand this > > ret = (p->flags & PF_EXITPIDONE) ? -ESRCH : -EAGAIN > > logic in attach_to_pi_owner(). First of all, why do we need to retry if > PF_EXITING is set but

[PATCH 0/1] futex: don't spin waiting for PF_EXITING - PF_EXITPIDONE transition

2015-02-16 Thread Oleg Nesterov
On 02/02, Oleg Nesterov wrote: And another question. Lets forget about this -mm check. I simply can not understand this ret = (p-flags PF_EXITPIDONE) ? -ESRCH : -EAGAIN logic in attach_to_pi_owner(). First of all, why do we need to retry if PF_EXITING is set but PF_EXITPIDONE is