From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756197AbcIUTtc (ORCPT ); Wed, 21 Sep 2016 15:49:32 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:35861 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755570AbcIUTta (ORCPT ); Wed, 21 Sep 2016 15:49:30 -0400 Date: Wed, 21 Sep 2016 21:46:34 +0200 (CEST) From: Thomas Gleixner To: Matt Fleming cc: Petr Mladek , Peter Zijlstra , Ingo Molnar , Byungchul Park , Frederic Weisbecker , Luca Abeni , Rik van Riel , Wanpeng Li , Yuyang Du , Jan Kara , Sergey Senozhatsky , linux-kernel@vger.kernel.org, Mel Gorman , Mike Galbraith Subject: Re: [PATCH v2 7/7] sched/core: Add debug code to catch missing update_rq_clock() In-Reply-To: <20160921190856.GP2892@codeblueprint.co.uk> Message-ID: References: <20160921133813.31976-1-matt@codeblueprint.co.uk> <20160921133813.31976-8-matt@codeblueprint.co.uk> <20160921155826.GB8408@pathway.suse.cz> <20160921190856.GP2892@codeblueprint.co.uk> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Sep 2016, Matt Fleming wrote: > On Wed, 21 Sep, at 05:58:27PM, Petr Mladek wrote: > > > > I am not sure how the above call chain is realistic. But adding > > WARN_ON() into the scheduler paths is risky in general. > > It's not clear to me why this should be the case. WARN_ON() calls have > existed in the scheduler paths since forever. Everything which end up in printk within a rq->lock held section has been have been prone to deadlocks for a very long time. Guess why printk_deferred (the former printk_sched) exists. Thanks, tglx