From: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
Ulrich Drepper <drepper@redhat.com>
Subject: Re: [RFC][PATCH] muptiple bugs in PI futexes
Date: Tue, 5 Jun 2007 21:39:49 +0400 [thread overview]
Message-ID: <20070605173949.GA27618@ms2.inr.ac.ru> (raw)
In-Reply-To: <1181060711.4404.114.camel@chaos>
Hello!
> Hmm, what means not expected ? -ESRCH is returned, when the owner task
> is not found.
This is not supposed to happen with robust futexes.
glibs aborts (which is correct), or for build with disabled debugging
enters simulated deadlock (which is confusing).
> lock. Also using uval is wrong.
Yup. You are right.
This means those RETRY messages could be spurious. I must rerun the test.
> This does not really explain, why you do prevent the -ESRCH return value
> in the next cycle,
Because right curval is refetched, it already has FUTEX_OWNER_DIED bit set
and we succesfully take the lock.
> No, -EDEADLK is returned from here:
>
> ret = rt_mutex_timed_lock(&q.pi_state->pi_mutex, to, 1);
Of course. It is the only place where ret is set. :-)
>
> The rtmutex code only returns -EDEADLK, when the lock is already held by
> the task
This case.
> The fix is to remove it and to find the real cause of the problem.
>
> I'm running the glibc tests since hours w/o tripping into it.
OK.
You need run only tst-robustpi8 in loop. It should be triggered quickly,
a few of minutes on 8-way smp here.
If you want, I can insert some debugging printks, which you need,
and run the test here.
Alexey
next prev parent reply other threads:[~2007-06-05 17:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-07 14:43 Alexey Kuznetsov
2007-05-23 7:26 ` Ingo Molnar
2007-05-23 11:51 ` Alexey Kuznetsov
2007-06-05 16:25 ` Thomas Gleixner
2007-06-05 17:39 ` Alexey Kuznetsov [this message]
2007-06-05 18:48 ` Thomas Gleixner
2007-06-05 19:15 ` Thomas Gleixner
2007-06-05 21:00 ` Alexey Kuznetsov
2007-06-05 21:13 ` Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070605173949.GA27618@ms2.inr.ac.ru \
--to=kuznet@ms2.inr.ac.ru \
--cc=akpm@linux-foundation.org \
--cc=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®