All of lore.kernel.org
 help / color / mirror / Atom feed
From: torvalds@transmeta.com (Linus Torvalds)
To: linux-kernel@vger.kernel.org
Subject: Re: [CHECKER] blocking w/ spinlock or interrupt's disabled
Date: 18 Mar 2001 19:24:25 -0800	[thread overview]
Message-ID: <993u59$32k$1@penguin.transmeta.com> (raw)
In-Reply-To: <001801c0af8e$bda30c10$5517fea9@local>

In article <001801c0af8e$bda30c10$5517fea9@local>,
Manfred Spraul <manfred@colorfullife.com> wrote:
>
>Unortunately schedule() with disabled interrupts is a feature, it's
>needed for the old (deprecated and waiting for termination in 2.5)
>sleep_on() functions.

Yes.  But that should only cover "sleep_on()" and it's interruptible
cousing "sleep_on_interruptible()".  No other blocking call should have
interrupts disabled, I would hope.

The special-case is a fairly specific "some old-style drivers avoid race
conditions by having interrupts disabled over explicit conditional
sleeps", not a generic "you may have interrupts disabled before
blocking". 

		Linus

  parent reply	other threads:[~2001-03-19  3:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-18  9:35 [CHECKER] blocking w/ spinlock or interrupt's disabled Manfred Spraul
2001-03-19  2:13 ` Dawson Engler
2001-03-20 19:11   ` george anzinger
2001-03-19  3:24 ` Linus Torvalds [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-03-18  4:23 Dawson Engler
2001-03-23 14:47 ` Kurt Garloff

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='993u59$32k$1@penguin.transmeta.com' \
    --to=torvalds@transmeta.com \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.