login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
7
Re: Cpu-Hotplug and Real-Time
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Oleg Nesterov <oleg@...>
To: Venki Pallipadi <venkatesh.pallipadi@...>
Cc: Gautham R Shenoy <ego@...>, Ingo Molnar <mingo@...>, Srivatsa Vaddagiri <vatsa@...>, <linux-kernel@...>, Dipankar Sarma <dipankar@...>, Paul E McKenney <paulmck@...>
Subject:
Re: Cpu-Hotplug and Real-Time
Date: Tuesday, August 7, 2007 - 2:36 pm
On 08/07, Venki Pallipadi wrote:
quoted text
> > On Tue, Aug 07, 2007 at 07:13:36PM +0400, Oleg Nesterov wrote: > > > > As for kthread_bind(), I think wait_task_inactive+set_task_cpu is just > > an optimization, and easy to "fix": > > > > --- kernel/kthread.c 2007-07-28 16:58:17.000000000 +0400 > > +++ /proc/self/fd/0 2007-08-07 18:56:54.248073547 +0400 > > @@ -166,10 +166,7 @@ void kthread_bind(struct task_struct *k, > > WARN_ON(1); > > return; > > } > > - /* Must have done schedule() in kthread() before we set_task_cpu */ > > - wait_task_inactive(k); > > - set_task_cpu(k, cpu); > > - k->cpus_allowed = cpumask_of_cpu(cpu); > > + set_cpus_allowed(current, cpumask_of_cpu(cpu)); > > } > > EXPORT_SYMBOL(kthread_bind); > > > > Not sure whether set_cpus_allowed() will work here. Looks like, it needs the > CPU to be online during the call and in kthread_bind() case CPU may be offline.
Aah, you are right, of course. Thanks, Oleg. -
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:
Cpu-Hotplug and Real-Time
, Gautham R Shenoy
, (Tue Aug 7, 9:12 am)
Re: Cpu-Hotplug and Real-Time
, Oleg Nesterov
, (Tue Aug 7, 11:13 am)
rt ptracer can monopolize CPU (was: Cpu-Hotplug and Real-Time)
, Oleg Nesterov
, (Thu Aug 9, 1:03 pm)
Re: rt ptracer can monopolize CPU (was: Cpu-Hotplug and Real...
, Gautham R Shenoy
, (Thu Aug 16, 8:06 am)
Re: Cpu-Hotplug and Real-Time
, Venki Pallipadi
, (Tue Aug 7, 1:33 pm)
Re: Cpu-Hotplug and Real-Time
, Oleg Nesterov
, (Tue Aug 7, 2:36 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Linus Torvalds
Re: init's children list is long and slows reaping children.
Kohei KaiGai
[PATCH 0/3] exporting capability name/code pairs (final#2)
git
:
linux-netdev
:
Gerrit Renker
[PATCH 33/37] dccp: Initialisation framework for feature negotiation
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Arjan van de Ven
Re: [GIT]: Networking
Mark Ryden
Re: Linux Wireless Mini-Summit -- Ottawa -- July 22, 2008
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
776 guests
online.
Online users
strcmp
Syndicate