linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: WANG Cong <xiyou.wangcong@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Recursive deactivation of local bottom halves
Date: Wed, 26 Jan 2011 06:20:10 +0000 (UTC)	[thread overview]
Message-ID: <ihoeep$kmn$4@dough.gmane.org> (raw)
In-Reply-To: 201101251405.18157.emil.langrock@gmx.de

On Tue, 25 Jan 2011 14:05:14 +0100, Emil Langrock wrote:
...
> ...
> local_bh_disable();
> ....
> 	local_bh_disable();
> 	...
> 	local_bh_enable();
> ....
> local_bh_enable();
> ....
...
> 
> Can somebody tell me if that is legal or not (on smp and uniprocessor)?
> And maybe can show me the related source code why is it may or may not
> be legal?
> 

>From what you show to us, it is legal, as long as local_bh_disable()/
local_bh_enable() are always paired, it is fine to call them nestedly.


      parent reply	other threads:[~2011-01-26  6:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-25 13:05 Recursive deactivation of local bottom halves Emil Langrock
2011-01-25 13:42 ` Thomas Gleixner
2011-01-26  6:20 ` WANG Cong [this message]

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='ihoeep$kmn$4@dough.gmane.org' \
    --to=xiyou.wangcong@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).