public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Rick Brown <rick.brown.3@gmail.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: preempt_disable() question
Date: Wed, 19 Mar 2008 23:27:45 +0100	[thread overview]
Message-ID: <47E19361.1010407@gmail.com> (raw)
In-Reply-To: <7783925d0803181914n16b0a221l179cc350bc2f3f89@mail.gmail.com>

On 03/19/2008 03:14 AM, Rick Brown wrote:
> Hi,
> 
> I've asked this on kernel newbies before, but not enough responses.
> 
> Does preempt_disable() disable preemption on all the processors, or
> just the local processor?

AFAIU preempt_disable increments preempt count of the current task, so that 
nobody will take the cpu which it is executing on (scheduler doesn't allow that) 
while the task is running until preempt count lowers to 0. How do you mean the 
"disabling preemption on local processor", how/why would you want to disable 
preemption of task potentially running on the other one?

  reply	other threads:[~2008-03-19 23:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-19  2:14 preempt_disable() question Rick Brown
2008-03-19 22:27 ` Jiri Slaby [this message]
2008-03-19 22:46 ` Peter Zijlstra
2008-03-20 16:23 ` Daniel Walker

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=47E19361.1010407@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rick.brown.3@gmail.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