lkml.org 
[lkml]   [2011]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Recursive deactivation of local bottom halves
Date
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.



\
 
 \ /
  Last update: 2011-01-26 07:23    [W:0.043 / U:3.152 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site