login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
27
Re: [git] CFS-devel, latest code
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
Ingo Molnar <mingo@...>
To: Dmitry Adamushko <dmitry.adamushko@...>
Cc: Peter Zijlstra <a.p.zijlstra@...>, Mike Galbraith <efault@...>, <linux-kernel@...>
Subject:
Re: [git] CFS-devel, latest code
Date: Thursday, September 27, 2007 - 3:56 am
* Dmitry Adamushko <dmitry.adamushko@gmail.com> wrote:
quoted text
> humm... I think, it'd be safer to have something like the following > change in place. > > The thing is that __pick_next_entity() must never be called when > first_fair(cfs_rq) == NULL. It wouldn't be a problem, should > 'run_node' be the very first field of 'struct sched_entity' (and it's > the second). > > The 'nr_running != 0' check is _not_ enough, due to the fact that > 'current' is not within the tree. Generic paths are ok (e.g. > schedule() as put_prev_task() is called previously)... I'm more > worried about e.g. migration_call() -> CPU_DEAD_FROZEN -> > migrate_dead_tasks()... if 'current' == rq->idle, no problems.. if > it's one of the SCHED_NORMAL tasks (or imagine, some other use-cases > in the future -- i.e. we should not make outer world dependent on > internal details of sched_fair class) -- it may be "Houston, we've got > a problem" case. > > it's +16 bytes to the ".text". Another variant is to make 'run_node' > the first data member of 'struct sched_entity' but an additional check > (se ! = NULL) is still needed in pick_next_entity().
looks good to me - and we already have something similar in sched_rt.c. I've added your patch to the queue. (Can i add your SoB line too?) Ingo -
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:
Re: [git] CFS-devel, latest code
, Dmitry Adamushko
, (Tue Sep 25, 5:35 pm)
Re: [git] CFS-devel, latest code
, Ingo Molnar
, (Thu Sep 27, 3:56 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
Roland Dreier
Re: Integration of SCST in the mainstream Linux kernel
Andrew Morton
Re: 2.6.24-rc3-mm1 make headers_check fails
git
:
linux-netdev
:
Ingo Molnar
iwlwifi: fix build bug in "iwlwifi: fix LED stall"
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
601 guests
online.
Online users
morelmushroom
Syndicate