public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Andrew Morton <akpm@osdl.org>
Cc: Zou Nan hai <nanhai.zou@intel.com>, linux-kernel@vger.kernel.org
Subject: Re: [Patch] jbd commit code deadloop when installing Linux
Date: Wed, 28 Jun 2006 11:29:19 +0200	[thread overview]
Message-ID: <20060628092919.GA14765@elte.hu> (raw)
In-Reply-To: <20060628014544.198b9eb4.akpm@osdl.org>


* Andrew Morton <akpm@osdl.org> wrote:

> >  However I still have some concern on cond_resched_lock(), on an UP 
> > kernel it will return 1 if schedule happen, but actually it does not 
> > drop any lock, that semantic seems to be different to SMP kernel.
> 
> That's OK (I think - I don't have a good track record in this thread).
> 
> If the kernel is non-preemptible and UP, we want to return true from 
> cond_resched_foo() if we called schedule().  Because schedule() might 
> allow a different thread into the kernel which might modify the locked 
> data.
> 
> And if the kernel is preemptible and UP, we want to return true from 
> cond_resched_foo() if we dropped the lock, because that internally 
> does a preempt_enable().
> 
> And the patch (hopefully) satisfies those requirements.  Does that all 
> sound solid?

it looks solid to me ... but this is subtle stuff and i dont seem to 
have a good track record for these details today. I guess if it's 
inadequate Zou ought to see them in practice?

	Ingo

  parent reply	other threads:[~2006-06-28  9:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-28  4:48 [Patch] jbd commit code deadloop when installing Linux Zou Nan hai
2006-06-28  6:40 ` Andrew Morton
2006-06-28  6:38   ` Ingo Molnar
2006-06-28  6:55     ` Andrew Morton
2006-06-28  5:46       ` Zou Nan hai
2006-06-28  7:39         ` Ingo Molnar
2006-06-28  7:40         ` Andrew Morton
2006-06-28  6:02           ` Zou Nan hai
2006-06-28  8:04             ` Andrew Morton
2006-06-28  6:50               ` Zou Nan hai
2006-06-28  8:45                 ` Andrew Morton
2006-06-28  7:14                   ` Zou Nan hai
2006-06-28  9:29                   ` Ingo Molnar [this message]
2006-06-28  7:55           ` Ingo Molnar
2006-06-28  9:10   ` Arjan van de Ven
2006-06-28  7:32     ` Zou Nan hai

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=20060628092919.GA14765@elte.hu \
    --to=mingo@elte.hu \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nanhai.zou@intel.com \
    /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