Calling printk with locks held

Mulyadi Santosa mulyadi.santosa at gmail.com
Thu Jun 2 18:45:00 EDT 2011


Hi...

On Fri, Jun 3, 2011 at 03:43, Neil Baylis <neil.baylis at gmail.com> wrote:
> I've just been told that it's not OK to call printk while holding a lock.

perhaps that is lock related to terminal?

> 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 at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>



-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list