From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753077AbcJCOnS (ORCPT ); Mon, 3 Oct 2016 10:43:18 -0400 Received: from merlin.infradead.org ([205.233.59.134]:59292 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751817AbcJCOnK (ORCPT ); Mon, 3 Oct 2016 10:43:10 -0400 Date: Mon, 3 Oct 2016 16:42:46 +0200 From: Peter Zijlstra To: Matt Fleming Cc: Ingo Molnar , Byungchul Park , Frederic Weisbecker , Luca Abeni , Rik van Riel , Thomas Gleixner , Wanpeng Li , Yuyang Du , Petr Mladek , Jan Kara , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Mel Gorman , Mike Galbraith Subject: Re: [PATCH v2 1/7] sched/fair: Update the rq clock before detaching tasks Message-ID: <20161003144246.GD3117@twins.programming.kicks-ass.net> References: <20160921133813.31976-1-matt@codeblueprint.co.uk> <20160921133813.31976-2-matt@codeblueprint.co.uk> <20161003124907.GD3142@twins.programming.kicks-ass.net> <20161003143745.GG16071@codeblueprint.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161003143745.GG16071@codeblueprint.co.uk> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 03, 2016 at 03:37:45PM +0100, Matt Fleming wrote: > On Mon, 03 Oct, at 02:49:07PM, Peter Zijlstra wrote: > > The other is through switched_from() where its far harder (but still > > possible afaict) to miss the update. > > It was the former callchain. Yep, just found it ;-) I seem to hit a few you didn't as well.. let me prod at this a wee bit more before I add more asserts.. 4WARNING: CPU: 0 PID: 1 at ../kernel/sched/sched.h:797 detach_task_cfs_rq+0x6fe/0x930 rq->clock_update_flags < RQCF_ACT_SKIPdModules linked in: dCPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-00637-g67223e2-dirty #553 dHardware name: Intel Corporation S2600GZ/S2600GZ, BIOS SE5C600.86B.02.02.0002.122320131210 12/23/2013 ffffc900000cbc00 ffffffff816152c5 ffffc900000cbc50 0000000000000000 ffffc900000cbc40 ffffffff810d5bab 0000031d00017b00 ffff88042f817b68 ffff88042dbb0000 ffff88042f817b00 ffff88042dbb0000 ffffffff81c18900 Call Trace: [] dump_stack+0x67/0x92 [] __warn+0xcb/0xf0 [] warn_slowpath_fmt+0x4f/0x60 [] detach_task_cfs_rq+0x6fe/0x930 [] switched_from_fair+0x11/0x20 [] __sched_setscheduler+0x2a7/0xb40 [] _sched_setscheduler+0x69/0x70 [] sched_set_stop_task+0x53/0x90 [] cpu_stop_create+0x23/0x30 [] __smpboot_create_thread.part.2+0xb0/0x100 [] smpboot_register_percpu_thread_cpumask+0xdf/0x140 [] ? pid_namespaces_init+0x40/0x40 [] cpu_stop_init+0x64/0x9b [] do_one_initcall+0x3d/0x150 [] ? print_cpu_info+0x7d/0xe0 [] kernel_init_freeable+0xcc/0x207 [] ? rest_init+0x90/0x90 [] kernel_init+0xe/0x100 [] ret_from_fork+0x27/0x40 4---[ end trace 90bea7c93d2289cb ]---