Thread (3 messages) 3 messages, 3 authors, 2011-06-02

Calling printk with locks held

From: Neil Baylis <hidden>
Date: 2011-06-02 20:43:05

I've just been told that it's not OK to call printk while holding a lock.
This came as a surprise to me, as I've written thousands of lines of code
that calls printk while holding multiple locks, and have not seen any
problem. The only explanation I was given was that it can deadlock.

Is this correct? I thought there were very few places where it was not safe
to call printk.

Neil Baylis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110602/5d2ee90a/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help