Re: [patch 0/3] futex/rtmutex: Fix issues exposed by trinity

From: Peter Zijlstra
Date: Thu May 15 2014 - 04:08:13 EST


On Wed, May 14, 2014 at 05:17:35PM -0400, Carlos O'Donell wrote:
> > No, its perfectly fine to have a lock sequence abort with -EDEADLK.
> > Userspace should release its locks and re-attempt.
>
> I agree. If I can prove that it's actually a deadlock, and
> that unlock/relock will work to fix it, then we can arrange for glibc
> to return EDEADLK.

The only reason the kernel would return EDEADLK is because its walked
the lock graph and determined its well, a deadlock.

Attachment: pgpLQDp6zVdLZ.pgp
Description: PGP signature