Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp208188pxu; Thu, 7 Jan 2021 02:48:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzb+1wZGVhVT5n7rtr7s0TVhyyVdVsY0UF8uTq50fNWZ4rTP9XlrOj0rQzu+SA2fLNAuEhQ X-Received: by 2002:aa7:df91:: with SMTP id b17mr1282844edy.272.1610016487010; Thu, 07 Jan 2021 02:48:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610016487; cv=none; d=google.com; s=arc-20160816; b=aKcp7NxpfTsOEuMDJbqrc/hcgvrcVb+65JiDpp6rosRJiZcq3qwaeDb2asrunj+F1w DYXdcecaEe79RhKDy6CxoMswoJ7d86KPUclEdeePphU4LodhQyPF3xNdzGC7n4eF2YwA OvtO69F7g/iR+shuCyZjwpE0w4rjXdHWIRHs+LBSp6dq1RBmeCUIMfAvC3cZBXkJZwf7 GatmiYJNDejNY9XgIIyQAMY1uf/dd8P3ZfLsloMRwwQxQ+n9tbp8bsD+WRPYkQCuP3zf 7B7Db+OnbwrU9krtdVFbqkHcuvnYt1mRwCq/87cPstNlGeB8LqNzRXJyjW+FCXWsWell /g6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EZKc6JiWIIcJxEETAlkAtOFPKHvjCYewp6b1efPwaA8=; b=wIl4rnNNLpCOpN7zArif0w51EPpneyNJBOC43Vkf7BxsEn5savS24MDhL4qgzttpXU 28aK5AAqo1wrNWjbp6jTSVIK8ka8ETpMI9um603pSDOTd+wpEThmRMku6LY1J6WvpjCN 5w82yO3spVibf1B19fYFyl0C7CKrXzljIPSxLH48jFyPsmlN5AL1ZfOGv0Hj9NCqHvyq O0unIuasWJ/dFiwccPM8XmP4m5thi6o0G3hDuQoX5oT/H0HFCHbZgNCr9X9m4gsQjwMH k7r3/e7movyREaHdV2Y/CpGUkoY0DausNRGhXv/2sAIhXILRuKdtaynjEBn4/9jzzA/h 5USQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=LaVWe1db; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si2068888ejx.368.2021.01.07.02.47.42; Thu, 07 Jan 2021 02:48:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=LaVWe1db; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726607AbhAGKqn (ORCPT + 99 others); Thu, 7 Jan 2021 05:46:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbhAGKqm (ORCPT ); Thu, 7 Jan 2021 05:46:42 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63D9BC0612F4; Thu, 7 Jan 2021 02:46:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EZKc6JiWIIcJxEETAlkAtOFPKHvjCYewp6b1efPwaA8=; b=LaVWe1dbfhZ6njw8CV1APm8ggg Zr24H8QkTfqsv9yuhm2WPykWE1yYVeiWYa4VH5BpyAzRH4QxO7Vwsrwx8rjXUhkVfV9OnauDWbvX6 OPrJeXgQKEKIDczo4w08dWJ+OMNdUgEb4mEcmc/vQfCxlPBruBaKRHJhS5wPy+bYeb4FtrHgEj9Fm DcDWP0Rmt85SMpV4FTC+A8PZkHohzE6XSQfgceaeOhE+C9yxZBjllSC9ek30uQfzFkw5tnN4WlBvN Ksg8TzXC+858328jaDMfcXEf8hl4frCrA7DqEjr/3iHG6LT6FmT/eeJGwtk7h3TS4rAcgJQVyx4Yt 1KBpUDmQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxSnX-0004zI-D0; Thu, 07 Jan 2021 10:45:43 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 6A0B83013E5; Thu, 7 Jan 2021 11:45:39 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 57A3D200E972D; Thu, 7 Jan 2021 11:45:39 +0100 (CET) Date: Thu, 7 Jan 2021 11:45:39 +0100 From: Peter Zijlstra To: Ran Wang Cc: Sebastian Siewior , Thomas Gleixner , Jiafei Pan , linux-rt-users@vger.kernel.org, Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , linux-kernel@vger.kernel.org Subject: Re: [PATCH] [RFC] rt: kernel/sched/core: fix kthread_park() pending too long when CPU un-plugged Message-ID: References: <20210107091841.19798-1-ran.wang_1@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210107091841.19798-1-ran.wang_1@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021 at 05:18:41PM +0800, Ran Wang wrote: > + > + if (IS_ENABLED(CONFIG_PREEMPT_RT) && > + !strncmp(p->comm, "ksoftirqd/", 10)) > + schedule_hrtimeout(&to, > + HRTIMER_MODE_REL | HRTIMER_MODE_HARD); > + else > + schedule_hrtimeout(&to, HRTIMER_MODE_REL); This is horrific, why did you not self-censor and spare me the mental anguish of having to formulate a CoC compliant response? It also violates coding style, but given the total lack of any sense, that seems like a minor detail. Why can't we use HRTIMER_MODE_HARD unconditionally?