login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
23
Re: [PATCH] printk deadlocks if called with runqueue lock held
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Pavel Machek <pavel@...>
To: Steven Rostedt <rostedt@...>
Cc: LKML <linux-kernel@...>, Linus Torvalds <torvalds@...>, Andrew Morton <akpm@...>, Alexey Dobriyan <adobriyan@...>, Kirill Korotaev <dev@...>
Subject:
Re: [PATCH] printk deadlocks if called with runqueue lock held
Date: Wednesday, January 23, 2008 - 9:31 am
Hi!
quoted text
> I thought that one could place a printk anywhere without worrying. > But it seems that it is not wise to place a printk where the runqueue > lock is held. > > I just spent two hours debugging why some of my code was locking up, > to find that the lockup was caused by some debugging printk's that > I had in the scheduler. The printk's were only in rare paths so > they shouldn't be too much of a problem, but after I hit the printk > the system locked up. > > Thinking that it was locking up on my code I went looking down the > wrong path. I finally found (after examining an NMI dump) that > the lockup happened because printk was trying to wakeup the klogd > daemon, which caused a deadlock when the try_to_wakeup code tries > to grab the runqueue lock.
Could try_to_wakeup use trylock, and only avoid wakeup if lock is already held? Pavel -- (english)
http://www.livejournal.com/~pavelmachek
(cesky, pictures)
http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] printk deadlocks if called with runqueue lock held
, Steven Rostedt
, (Thu Jan 17, 9:04 pm)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Pavel Machek
, (Wed Jan 23, 9:31 am)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Steven Rostedt
, (Wed Jan 23, 2:36 pm)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Pavel Machek
, (Thu Jan 24, 5:00 am)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Jiri Kosina
, (Fri Jan 18, 7:04 am)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Steven Rostedt
, (Fri Jan 18, 7:35 am)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Jan Kiszka
, (Fri Jan 18, 10:55 am)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Linus Torvalds
, (Fri Jan 18, 1:30 pm)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Steven Rostedt
, (Fri Jan 18, 12:26 pm)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Linus Torvalds
, (Thu Jan 17, 9:31 pm)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Steven Rostedt
, (Thu Jan 17, 9:52 pm)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Andrew Morton
, (Thu Jan 17, 9:19 pm)
Re: [PATCH] printk deadlocks if called with runqueue lock held
, Steven Rostedt
, (Thu Jan 17, 9:57 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Hiten Pandya
Re: up? (emacs docbook xml ide)
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
debian developer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
git
:
linux-netdev
:
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Ingo Molnar
iwlwifi: fix build bug in "iwlwifi: fix LED stall"
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
649 guests
online.
Online users
goodheart6969
robertobeya89
emeka_micro
Syndicate