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: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] logdev debugging memory device for tough to debug areas
Date: Tue, 29 Mar 2005 13:56:56 +0200	[thread overview]
Message-ID: <20050329115656.GA15708@elte.hu> (raw)
In-Reply-To: <1112097210.3691.51.camel@localhost.localdomain>


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

> Also, I'm almost done adding the pending owner work against .41-11. I 
> see you now have 41-13, and if you already implemented it, let me 
> know. [...]

nope, i havent touched that area of code, knowing that you are working 
on it.

> [...] I've been fighting your deadlock detection to make sure it works 
> with the changes. Then finally I found a race condition that I'm 
> solving.

great - just send it along when you have it.

> To have a task take back the ownership, I had the stealer call 
> task_blocks_on_lock on the task that it stole it from. To get this to 
> work, when a task is given the pending ownership, it doesn't NULL the 
> blocked_on at that point (although the waiter->task is set to NULL).  
> But this gives the race condition in pi_setprio where it checks for 
> p->blocked_on still exists. Reason is that I don't want the waking up 
> of a process to call any more locks. To solve this, I had to (and this 
> is what I don't like right now) add another flag for the process 
> called PF_BLOCKED. So that this can tell the pi_setprio when to stop.  
> This flag is set in task_blocks_on_lock and cleared in pick_new_owner 
> where the setting of blocked_on to NULL use to be.

which locks are affected? I'd prefer the simplest solution. If there's 
more overhead with deadlock detection (which is a debugging feature), 
that doesnt matter much.

> Unless you already implemented this, I'll have a patch for you to look 
> at later today, and you can then (if you want) critique it :-)

sure.

	Ingo

  reply	other threads:[~2005-03-29 12:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-22  0:39 [RFC] logdev debugging memory device for tough to debug areas Steven Rostedt
2005-03-29  9:07 ` Ingo Molnar
2005-03-29 11:53   ` Steven Rostedt
2005-03-29 11:56     ` Ingo Molnar [this message]
2005-03-29 12:12       ` Steven Rostedt

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=20050329115656.GA15708@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