tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Anomalies while handling p_nstopchild count



In article <Pine.NEB.4.64.1510101636500.411%vps1.whooppee.com@localhost>,
Paul Goyette  <paul%whooppee.com@localhost> wrote:
>-=-=-=-=-=-
>+
>+		if (!mutex_tryenter(proc_lock)) {
>+			mutex_exit(p->p_lock);
>+			mutex_enter(proc_lock);
>+			mutex_enter(p->p_lock);
>+		}

Can you find out where exit1() is called with the proc_lock held? Then
you can call it with an additional flag and remove the tryenter call,
and instead use the flag.

christos



Home | Main Index | Thread Index | Old Index