From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755913AbcIVApH (ORCPT ); Wed, 21 Sep 2016 20:45:07 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36342 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752679AbcIVApE (ORCPT ); Wed, 21 Sep 2016 20:45:04 -0400 Date: Thu, 22 Sep 2016 09:44:20 +0900 From: Sergey Senozhatsky To: Matt Fleming Cc: Petr Mladek , Peter Zijlstra , Ingo Molnar , Byungchul Park , Frederic Weisbecker , Luca Abeni , Rik van Riel , Thomas Gleixner , 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() Message-ID: <20160922004420.GB701@swordfish> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160921190856.GP2892@codeblueprint.co.uk> User-Agent: Mutt/1.7.0 (2016-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On (09/21/16 20:08), 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. > > If the new async printk patches make that impossible then surely they > need fixing, not the scheduler? it's not specific to async printk, because printk already invokes scheduler via semaphore up(). -ss