public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.13-rt1
Date: Tue, 30 Aug 2005 07:53:21 +0200	[thread overview]
Message-ID: <20050830055321.GB5743@elte.hu> (raw)
In-Reply-To: <1125372830.6096.7.camel@localhost.localdomain>


* Steven Rostedt <rostedt@goodmis.org> wrote:

> Ingo,
> 
> I just found another deadlock in the pi_lock logic.  The PI logic is 
> very dependent on the P1->L1->P2->L2->P3 order.  But our good old 
> friend is back, the BKL.
> 
> Since the BKL is let go and regrabbed even if a task is grabbing 
> another lock, it messes up the order.  For example, it can do the 
> following: L1->P1->L2->P2->L1 if L1 is the BKL.  Luckly, (and I guess 
> there's really no other way) the BKL is only held by those that are 
> currently running, or at least not blocked on anyone.  So I added code 
> in the pi_setprio code to test if the next lock in the loop is the BKL 
> and if so, if its owner is the current task.  If so, the loop is 
> broken.
> 
> Without this patch, I would constantly get lock ups on shutdown where 
> it sends SIGTERM to all the processes.  It usually would lock up on 
> the killing of udev.  But with the patch, I've shutdown a few times 
> already and no lockups so far.

thanks, applied.

	Ingo

  reply	other threads:[~2005-08-30  5:52 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-29  8:48 2.6.13-rt1 Ingo Molnar
2005-08-29 11:09 ` 2.6.13-rt1 Steven Rostedt
2005-08-29 11:18   ` 2.6.13-rt1 Ingo Molnar
2005-08-29 15:04 ` 2.6.13-rt1 Daniel Walker
2005-08-29 15:18   ` 2.6.13-rt1 Ingo Molnar
2005-08-29 15:19     ` 2.6.13-rt1 Daniel Walker
2005-08-30  3:33 ` 2.6.13-rt1 Steven Rostedt
2005-08-30  5:53   ` Ingo Molnar [this message]
2005-08-30 13:06     ` 2.6.13-rt1 Steven Rostedt
2005-08-30 22:34       ` 2.6.13-rt1 Daniel Walker
2005-08-31  1:10         ` 2.6.13-rt1 Steven Rostedt
2005-08-30 22:42 ` [PATCH] PREEMPT_RT vermagic Daniel Walker
2005-08-31  7:20   ` Ingo Molnar
2005-08-31 14:29     ` Tom Rini
2005-08-31 15:19       ` Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2005-08-29 13:02 2.6.13-rt1 Hubert Tonneau
2005-08-29 16:11 ` 2.6.13-rt1 Bill Davidsen

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=20050830055321.GB5743@elte.hu \
    --to=mingo@elte.hu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    /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