Calling printk with locks held

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux