Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1235068

Re: [RFC][PATCH 04/11] sched: Rework TASK_DEAD preemption exception

From Frederic Weisbecker <fweisbec@gmail.com>
Newsgroups linux.kernel
Subject Re: [RFC][PATCH 04/11] sched: Rework TASK_DEAD preemption exception
Date 2015-09-29 15:50 +0200
Message-ID <qe3s6-85D-17@gated-at.bofh.it> (permalink)
References <qdZHQ-2IS-3@gated-at.bofh.it> <qdZHQ-2IS-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Sep 29, 2015 at 11:28:29AM +0200, Peter Zijlstra wrote:
> TASK_DEAD is special in that the final schedule call from do_exit()
> must be done with preemption disabled.
> 
> This leads to a violation of our new scheduling invariant which states
> that the preempt count should be 2. Move the check for TASK_DEAD out
> of the debug check and use it to decrement the preempt count (from 2
> to 1).
> 
> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>

Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com>
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC][PATCH 04/11] sched: Rework TASK_DEAD preemption exception Peter Zijlstra <peterz@infradead.org> - 2015-09-29 11:50 +0200
  Re: [RFC][PATCH 04/11] sched: Rework TASK_DEAD preemption exception Frederic Weisbecker <fweisbec@gmail.com> - 2015-09-29 15:50 +0200
  Re: [RFC][PATCH 04/11] sched: Rework TASK_DEAD preemption exception Steven Rostedt <rostedt@goodmis.org> - 2015-09-29 17:20 +0200

csiph-web