lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47E19361.1010407@gmail.com>
Date:	Wed, 19 Mar 2008 23:27:45 +0100
From:	Jiri Slaby <jirislaby@...il.com>
To:	Rick Brown <rick.brown.3@...il.com>
CC:	Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: preempt_disable() question

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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ