lkml.org 
[lkml]   [2017]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] sched: Have do_idle() call __schedule() without enabling preemption
On Wed, Apr 12, 2017 at 02:27:44PM -0400, Steven Rostedt wrote:
> + * schedule_idle() is similar to schedule_preempt_disable() except
> + * that it never enables preemption.

That's not right. The primary distinction is that it doesn't call
sched_submit_work().

And because that function is a no-op for the idle thread, the idle
thread can do without calling that and therefore avoid the preemption
window.

You also need a few words about fake idle threads, search play_idle()
callers.

You could also make schedule_idle() more robust by adding a WARN for the
blk_schedule_flush_plug() condition.


You Changelog is still entirely long and rambling but fails to mention
the fundamental important stuff :-(

\
 
 \ /
  Last update: 2017-04-13 10:45    [W:0.618 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site