login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
18
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:
Jan Kiszka <jan.kiszka@...>
To: Steven Rostedt <rostedt@...>
Cc: Jiri Kosina <jikos@...>, 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: Friday, January 18, 2008 - 10:55 am
Steven Rostedt wrote: ...
quoted text
> @@ -978,7 +980,13 @@ void release_console_sem(void) > console_locked = 0; > up(&console_sem);
Hmm, just looking at this fragment: Doesn't up() include the risk of running onto the runqueue lock as well?
quoted text
> spin_unlock_irqrestore(&logbuf_lock, flags); > - if (wake_klogd) > + /* > + * If we try to wake up klogd while printing with the runqueue lock > + * held, this will deadlock. We don't have access to the runqueue > + * lock from here, but just checking for interrupts disabled > + * should be enough. > + */ > + if (!irqs_disabled() && wake_klogd) > wake_up_klogd(); > } > EXPORT_SYMBOL(release_console_sem);
Jan --
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
:
Amit K. Arora
[RFC] Heads up on sys_fallocate()
Linus Torvalds
Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..
Paul Jackson
Re: cpuset-remove-sched-domain-hooks-from-cpusets
Greg KH
[GIT PATCH] driver core patches against 2.6.24
git
:
linux-netdev
:
Linus Torvalds
Re: [GIT]: Networking
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [klibc] [patch] import socket defines
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
571 guests
online.
Online users
wikaniko
Syndicate