login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
June
»
10
Re: [patch] sched: prevent bound kthreads from changing cpus_allowed
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: [patch] sched: prevent bound kthreads from changing cpus_allowed
Date: Monday, June 9, 2008 - 11:44 pm
On Mon, 2008-06-09 at 13:59 -0700, Max Krasnyanskiy wrote:
quoted text
> David Rientjes wrote: > >> 2) Sometimes calls to kthread_bind are binding to any online cpu, such as in: > >> > >> drivers/infiniband/hw/ehca/ehca_irq.c: kthread_bind(cct->task, any_online_cpu(cpu_online_map)); > >> > >> In such cases, the PF_THREAD_BOUND seems inappropriate. The caller of > >> kthread_bind() really doesn't seem to care where that thread is bound; > >> they just want it on a CPU that is still online. > >> > > > > This particular case is simply moving the thread to any online cpu so that > > it survives long enough for the subsequent kthread_stop() in > > destroy_comp_task(). So I don't see a problem with this instance. > > > > A caller to kthread_bind() can always remove PF_THREAD_BOUND itself upon > > return, but I haven't found any cases in the tree where that is currently > > necessary. And doing that would defeat the semantics of kthread_bind() > > where these threads are supposed to be bound to a specific cpu and not > > allowed to run on others. > > Actually I have another use case here. Above example in particular may be ok > but it does demonstrate the issue nicely. Which is that in some cases kthreads > are bound to a CPU but do not have a strict "must run here" requirement and > could be moved if needed. > For example I need an ability to move workqueue threads. Workqueue threads do > kthread_bind().
Per cpu workqueues should stay on their cpu. What you're really looking for is a more fine grained alternative to flush_workqueue(). --
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] sched: prevent bound kthreads from changing cpus_a ...
, David Rientjes
, (Thu Jun 5, 12:57 pm)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Paul Jackson
, (Thu Jun 5, 1:29 pm)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Daniel Walker
, (Thu Jun 5, 1:52 pm)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, David Rientjes
, (Thu Jun 5, 2:12 pm)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Paul Jackson
, (Thu Jun 5, 2:47 pm)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Max Krasnyanskiy
, (Mon Jun 9, 1:59 pm)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, David Rientjes
, (Mon Jun 9, 3:07 pm)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Max Krasnyansky
, (Mon Jun 9, 9:23 pm)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Peter Zijlstra
, (Mon Jun 9, 11:44 pm)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Ingo Molnar
, (Tue Jun 10, 3:28 am)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Max Krasnyansky
, (Tue Jun 10, 8:38 am)
cpusets and kthreads, inconsistent behaviour
, Max Krasnyansky
, (Tue Jun 10, 9:30 am)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Oleg Nesterov
, (Tue Jun 10, 10:00 am)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, David Rientjes
, (Tue Jun 10, 10:04 am)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Peter Zijlstra
, (Tue Jun 10, 10:19 am)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Oleg Nesterov
, (Tue Jun 10, 10:47 am)
Re: [patch] sched: prevent bound kthreads from changing cp ...
, Max Krasnyansky
, (Tue Jun 10, 11:00 am)
Re: cpusets and kthreads, inconsistent behaviour
, David Rientjes
, (Tue Jun 10, 11:47 am)
workqueue cpu affinity
, Max Krasnyansky
, (Tue Jun 10, 1:24 pm)
Re: cpusets and kthreads, inconsistent behaviour
, Max Krasnyansky
, (Tue Jun 10, 1:44 pm)
Re: cpusets and kthreads, inconsistent behaviour
, David Rientjes
, (Tue Jun 10, 1:54 pm)
Re: cpusets and kthreads, inconsistent behaviour
, Max Krasnyansky
, (Tue Jun 10, 2:15 pm)
Re: workqueue cpu affinity
, Peter Zijlstra
, (Tue Jun 10, 11:49 pm)
Re: workqueue cpu affinity
, Oleg Nesterov
, (Wed Jun 11, 9:08 am)
Re: workqueue cpu affinity
, Max Krasnyansky
, (Wed Jun 11, 12:02 pm)
Re: workqueue cpu affinity
, Max Krasnyansky
, (Wed Jun 11, 12:21 pm)
Re: workqueue cpu affinity
, Max Krasnyansky
, (Wed Jun 11, 12:21 pm)
Re: workqueue cpu affinity
, Max Krasnyansky
, (Wed Jun 11, 1:44 pm)
Re: workqueue cpu affinity
, Oleg Nesterov
, (Thu Jun 12, 9:35 am)
Re: workqueue cpu affinity
, Peter Zijlstra
, (Thu Jun 12, 11:44 am)
Re: workqueue cpu affinity
, Max Krasnyanskiy
, (Thu Jun 12, 12:10 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Chuck Ebbert
Re: PCI: Unable to reserve mem region problem
Linus Torvalds
Linux 2.6.34-rc4
Mingming Cao
Re: [RFC 1/4] Large Blocksize support for Ext2/3/4
git
:
Ralf Wildenhues
[PATCH] Fix typos in the documentation
Len Brown
Re: fatal: unable to create '.git/index': File exists
Adeodato
Bazaar's patience diff as GIT_EXTERNAL_DIFF
Denis Bueno
Git clone error
Johannes Schindelin
Re: [PATCH 2/4] Add functions get_relative_cwd() and is_inside_dir()
git-commits-head
:
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
nfsd41: sanity check client drc maxreqs
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
V4L/DVB: gspca - sonixj: Adjust minor values of sensor ov7630. - set the color ga...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Sam Fourman Jr.
Re: Help with Altell PC6700
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
linux-netdev
:
Kurt Van Dijck
Re: [PATCH net-next-2.6 1/2] can: add driver for Softing card
Eric Dumazet
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try()
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
David Miller
Re: [PATCH v2] net: typos in comments in include/linux/igmp.h
Colocation donated by:
Syndicate