login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
February
»
28
Re: Problem with freezable workqueues
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Rafael J. Wysocki
Subject:
Re: Problem with freezable workqueues
Date: Wednesday, February 28, 2007 - 12:17 pm
On Wednesday, 28 February 2007 14:17, Srivatsa Vaddagiri wrote:
quoted text
> On Wed, Feb 28, 2007 at 12:11:03PM +0100, Rafael J. Wysocki wrote: > > > In addition to thawing worker thread before kthread_stopping it, there > > > are minor changes required in worker threads, to check for > > > is_cpu_offline(bind_cpu) when they come out of refrigerator and jump to > > > wait_to_die if so (ex: softirq.c). > > > > > > I guess you would need these changes before freezer-based hotplug is > > > merged, in which case Gautham can send those patches out first. > > > > Yes, please, if that's possible. > > After looking at the current workqueue code, the above minor change I > suggested is not required. > > So you should be able to fix your "kthread_stop on a frozen worker > thread hangs" problem by just a simple patch like this (against > 2.6.20-mm2): > > > --- workqueue.c.org 2007-02-28 18:32:48.000000000 +0530 > +++ workqueue.c 2007-02-28 18:44:23.000000000 +0530 > @@ -718,6 +718,8 @@ static void cleanup_workqueue_thread(str > insert_wq_barrier(cwq, &barr, 1); > cwq->should_stop = 1; > alive = 1; > + if (frozen(cwq->thread)) > + thaw(cwq->thread); > } > spin_unlock_irq(&cwq->lock); > > > Can you test with this?
Unfortunately, the above code is mm-only. Is the analogous fix for 2.6.21-rc2 viable? Rafael -
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:
Problem with freezable workqueues
, Rafael J. Wysocki
, (Tue Feb 27, 2:51 pm)
Re: Problem with freezable workqueues
, Oleg Nesterov
, (Tue Feb 27, 4:28 pm)
Re: Problem with freezable workqueues
, Johannes Berg
, (Tue Feb 27, 4:36 pm)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Tue Feb 27, 4:57 pm)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Tue Feb 27, 5:00 pm)
Re: Problem with freezable workqueues
, Johannes Berg
, (Tue Feb 27, 5:00 pm)
Re: Problem with freezable workqueues
, Johannes Berg
, (Tue Feb 27, 5:01 pm)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Tue Feb 27, 5:08 pm)
Re: Problem with freezable workqueues
, Nigel Cunningham
, (Tue Feb 27, 6:14 pm)
Re: Problem with freezable workqueues
, Srivatsa Vaddagiri
, (Tue Feb 27, 8:01 pm)
Re: Problem with freezable workqueues
, Srivatsa Vaddagiri
, (Tue Feb 27, 8:07 pm)
Re: Problem with freezable workqueues
, Srivatsa Vaddagiri
, (Tue Feb 27, 8:51 pm)
Re: Problem with freezable workqueues
, Oleg Nesterov
, (Wed Feb 28, 1:48 am)
Re: Problem with freezable workqueues
, Pavel Machek
, (Wed Feb 28, 1:54 am)
Re: Problem with freezable workqueues
, Srivatsa Vaddagiri
, (Wed Feb 28, 2:10 am)
Re: Problem with freezable workqueues
, Oleg Nesterov
, (Wed Feb 28, 2:43 am)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Wed Feb 28, 3:59 am)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Wed Feb 28, 4:09 am)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Wed Feb 28, 4:11 am)
Re: Problem with freezable workqueues
, Srivatsa Vaddagiri
, (Wed Feb 28, 6:17 am)
Re: Problem with freezable workqueues
, Srivatsa Vaddagiri
, (Wed Feb 28, 6:27 am)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Wed Feb 28, 10:40 am)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Wed Feb 28, 10:41 am)
Re: Problem with freezable workqueues
, Gautham R Shenoy
, (Wed Feb 28, 11:06 am)
Re: Problem with freezable workqueues
, Gautham R Shenoy
, (Wed Feb 28, 11:17 am)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Wed Feb 28, 11:41 am)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Wed Feb 28, 12:17 pm)
Re: Problem with freezable workqueues
, Oleg Nesterov
, (Wed Feb 28, 12:32 pm)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Wed Feb 28, 12:43 pm)
Re: Problem with freezable workqueues
, Oleg Nesterov
, (Wed Feb 28, 1:08 pm)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Wed Feb 28, 1:25 pm)
Re: Problem with freezable workqueues
, Oleg Nesterov
, (Wed Feb 28, 1:35 pm)
Re: Problem with freezable workqueues
, Johannes Berg
, (Wed Feb 28, 1:36 pm)
Re: Problem with freezable workqueues
, Pavel Machek
, (Wed Feb 28, 2:16 pm)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Wed Feb 28, 3:39 pm)
Re: Problem with freezable workqueues
, Pavel Machek
, (Wed Feb 28, 3:44 pm)
[PATCH] Make XFS workqueues nonfreezable
, Rafael J. Wysocki
, (Wed Feb 28, 4:54 pm)
Re: [PATCH] Make XFS workqueues nonfreezable
, Andrew Morton
, (Thu Mar 1, 1:03 am)
Re: [PATCH] Make XFS workqueues nonfreezable
, Pavel Machek
, (Thu Mar 1, 2:15 am)
Re: [PATCH] Make XFS workqueues nonfreezable
, Andrew Morton
, (Thu Mar 1, 2:25 am)
Re: Problem with freezable workqueues
, Johannes Berg
, (Mon Mar 5, 5:30 pm)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Tue Mar 6, 1:31 pm)
Re: Problem with freezable workqueues
, Nigel Cunningham
, (Tue Mar 6, 3:25 pm)
Re: Problem with freezable workqueues
, Rafael J. Wysocki
, (Tue Mar 6, 3:57 pm)
Re: Problem with freezable workqueues
, Johannes Berg
, (Wed Mar 7, 4:10 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Greg Kroah-Hartman
[PATCH 22/36] PM: Make wakeup flags available whenever CONFIG_PM is set
Frank Griffin
Re: [REGRESSION bisected] Sound goes too fast due to commit 7b3a177b0
Roman Zippel
Re: [PATCH] override build timestamp
Tracy Reed
Re: [Xen-devel] domU is causing misaligned disk writes
git
:
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Mark Burton
Re: [PATCH] builtin-branch: highlight current remote branches with an asterisk
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
Teemu Likonen
Re: [PATCH] gc --aggressive: make it really aggressive
Pieter de Bie
Re: Using url.insteadOf in git-clone
linux-netdev
:
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Pavel Emelyanov
Re: [RFC][PATCH] ns: Syscalls for better namespace sharing control.
Guo-Fu Tseng
Re: jme: UDP checksum error, and lots of them
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
openbsd-misc
:
Conor
Re: RFID Reader
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Pieter Verberne
File collision while using pkg_add
Stuart Henderson
Re: SquidGuard problem
Community First Financial
Teacher A+ Loan
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
ath9k: Added get_survey callback in order to get channel noise
Linux Kernel Mailing List
ALSA: snd-usb-caiaq: Do not expose hardware input mode 0 of A4DJ
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Colocation donated by:
Syndicate