From mboxrd@z Thu Jan 1 00:00:00 1970 From: mulyadi.santosa@gmail.com (Mulyadi Santosa) Date: Fri, 3 Jun 2011 05:45:00 +0700 Subject: Calling printk with locks held In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi... On Fri, Jun 3, 2011 at 03:43, Neil Baylis 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