I&#39;ve just been told that it&#39;s not OK to call printk while holding a lock. This came as a surprise to me, as I&#39;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.<div>

<br></div><div>Is this correct? I thought there were very few places where it was not safe to call printk.</div><div><br></div><div>Neil Baylis</div>