Messages in this thread | | | From | WANG Cong <> | Subject | Re: Recursive deactivation of local bottom halves | Date | Wed, 26 Jan 2011 06:20:10 +0000 (UTC) |
| |
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.
| |