public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@uni-koblenz.de>
To: Oliver Neukum <oliver@neukum.name>
Cc: linux-kernel@vger.kernel.org
Subject: Re: question on spinlocks
Date: Sun, 1 Sep 2002 21:05:04 +0200	[thread overview]
Message-ID: <20020901210504.A22882@bacchus.dhis.org> (raw)
In-Reply-To: <200209011927.53853.oliver@neukum.name>; from oliver@neukum.name on Sun, Sep 01, 2002 at 07:27:53PM +0200

On Sun, Sep 01, 2002 at 07:27:53PM +0200, Oliver Neukum wrote:

> is the following sequence legal ?
> 
> spin_lock_irqsave(...);
> ...
> spin_unlock(...);
> schedule();
> spin_lock(...);
> ...
> spin_unlock_irqrestore(...);

No; spin_lock_irqsave/spin_unlock_irqrestore and spin_lock/spin_unlock
have to be used in matching pairs.

  Ralf

  reply	other threads:[~2002-09-01 19:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-01 17:27 question on spinlocks Oliver Neukum
2002-09-01 19:05 ` Ralf Baechle [this message]
2002-09-01 21:53   ` Thunder from the hill
2002-09-01 22:02     ` Oliver Neukum
2002-09-01 22:09       ` Thunder from the hill
2002-09-01 22:11         ` Robert Love
2002-09-01 22:33         ` Oliver Neukum
2002-09-02 22:30           ` Jan Hudec
2002-09-03 22:13           ` george anzinger
2002-09-01 22:11       ` Robert Love
2002-09-01 22:08     ` Robert Love
2002-09-01 22:16       ` Thunder from the hill
     [not found]     ` <mailman.1030918200.24262.linux-kernel2news@redhat.com>
2002-09-03 20:09       ` Pete Zaitcev

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=20020901210504.A22882@bacchus.dhis.org \
    --to=ralf@uni-koblenz.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oliver@neukum.name \
    /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