"Paolo 'Blaisorblade' Giarrusso" <[EMAIL PROTECTED]> wrote:
>
> +int __cant_sleep(void) {
> + return in_atomic() || irqs_disabled() || in_interrupt();
aww, man, this is awful. Code is supposed to know what context it's
running in, not go fishing about in core internals trying to fix up its own
confusion.
> + /* Is in_interrupt() really needed? */
> }
Yes, it is. in_atomic() is a no-op on !PREEMPT and local irq's can be
enabled in soft- or hard- interrupt context, so irqs_disabled() will return
0.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel