From: Ingo Molnar <mingo@elte.hu>
To: Dinakar Guniguntala <dino@in.ibm.com>
Cc: linux-kernel@vger.kernel.org, Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH] Fix for Bug in PI exit code
Date: Sat, 10 Jun 2006 10:23:00 +0200 [thread overview]
Message-ID: <20060610082300.GA32261@elte.hu> (raw)
In-Reply-To: <20060609131409.GA4962@in.ibm.com>
* Dinakar Guniguntala <dino@in.ibm.com> wrote:
> We were seeing oopses like below a lot when using PI mutexes
> ===============================================================================
> After a lot of debugging we found that this is caused due to the following race.
> PM is a PI mutex, A and B are RT threads
>
> Thread A (RT) Thread B (RT)
> |
> v
> pthread_mutex_lock (PM) |
> (glibc) got mutex v
> do work pthread_mutex_lock (PM)
> rt_mutex_timed_lock
>
> EINTR EINTR (Process gets aborted)
>
> do_exit lock(pi_mutex->lock->wait_lock)
> exit_pi_state_list clear_waiters
> lock(hb->lock)
> pi_state->owner = NULL unlock(pi_mutex->lock->wait_lock)
> rt_mutex_unlock(pi_mutex) lock(hb->lock) (blocks)
> unlock(hb->lock) unblock -> free_pi_state
> continue exit processing doesn't expect pi_state->owner to be NULL
> Panic
>
> The patch attached below seems to make this problem go away. This has
> been stress tested quite a bit in the past 24 hours. Does it look sane
> to you ??
yeah, makes sense. Thanks, applied.
Ingo
prev parent reply other threads:[~2006-06-10 8:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-09 13:14 Dinakar Guniguntala
2006-06-10 8:23 ` Ingo Molnar [this message]
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=20060610082300.GA32261@elte.hu \
--to=mingo@elte.hu \
--cc=dino@in.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--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
Powered by JetHome