Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp598512rwb; Wed, 28 Sep 2022 06:54:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Kt+XGfgviihi5i8XSQ0AlfKGn6VZiB9foNOesNSgWjbZPEQo3L22G2ul5awpc8g8dSKE/ X-Received: by 2002:a17:907:16a3:b0:783:96fc:7fc0 with SMTP id hc35-20020a17090716a300b0078396fc7fc0mr13155274ejc.441.1664373271041; Wed, 28 Sep 2022 06:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664373271; cv=none; d=google.com; s=arc-20160816; b=Yoo8decJR+Y46xfO1+VwiXADfneWl+6zo0j+lwUWNsRaTdrZp7wFL0yHO2e02BdxwR 4Qhzccs3jGYlAKz9iIDiF5LstxP9ej/ERKUMvkX9gfEJARuXKfSLMrKu6o7jm9akC+3e w7pnmphPneTnzB8ekq4BI7EXPNGCEYUTAVBBTRN2xc+1e7RW2PocUnrBBkcAA6u7xq9v XAD35CscQvCnZ+EoEWX46+Y4o+E8pmPuhE72QOrC8lutfzuvQK/ry/wwV//6VdNiytkQ A4mRfyKdDiethDyD2jYg+EmZ+Yk0jndSuZecCji0pUsElEZZ64REgYjNWlPmDgmUbwNS qoXA== 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=2S5bCE90ALJgS362zIKqVG0EZgFFSlA8L7arkIqrt/0=; b=XDU0b4NKwI2RBtJ9uFPPjLFTX043O3LSs3R5WD72o34SQblBPYT/UxvXELwmwOaGWe j7o+Q3QP5ANF1fMV2jdjGx5+4KIDehcl41wgcrnGzfY5Vs/jrzU6mFCPgmFb7DqL85dq EstVryhvz1opJTR7KYerzCTztxmIsKlaH+Pkun3wyVchCoTmHoIpH6eiHBoctjemNcHT Zu1s/e2mhUKuw3IjXtwEAztfWgarUm90G4DdfofAwIFvia8lRcZC0gR/1a4btjbUfr9u hQMNpQVbOuNPp+sn9HwhluqxQI2BTSiPM2FgaZ2STk76enbwPWu6fUM/rUQdYOwZO8rA p5Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=d1vajE+o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr11-20020a170906d54b00b007830f14fffesi5253026ejc.375.2022.09.28.06.54.05; Wed, 28 Sep 2022 06:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=d1vajE+o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234251AbiI1NoS (ORCPT + 99 others); Wed, 28 Sep 2022 09:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234219AbiI1NoL (ORCPT ); Wed, 28 Sep 2022 09:44:11 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 260AEA74C8 for ; Wed, 28 Sep 2022 06:44:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=2S5bCE90ALJgS362zIKqVG0EZgFFSlA8L7arkIqrt/0=; b=d1vajE+ofAJsS1SUgsa036tBmR BxuCc0uGn+tB7bhSZjuAMnJlEUGq0eUCgUnFpdgserkqGmnTwdW7wtxHNls0kJsiBRHiDI/H/OfQa ZfC9/un7dpUhFp8A8A+AXv7o4vNFeEFyAn3HmVMWcNbYP+UNKE4/ir5AL5pDz3AvGg3JxEv1NZeI7 5PapTqxEe25JlVUulXDHYP71sz2CAwrPVt34H3dtEgWrCPpkBrc4o+bEJh++QKl1qPA1hiATzVq7a X7+M4Bmm1fQYuDhkcP1q0lzzV7jSF/mhgVdgDTKAbVCjWlmsQWNBglXfcdv+AOKKnKs1Ouh5voj8r /DP9+oJA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1odXLs-00Gb0Z-BJ; Wed, 28 Sep 2022 13:43:52 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 8119F3001D7; Wed, 28 Sep 2022 15:43:51 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5B1252BE3417C; Wed, 28 Sep 2022 15:43:51 +0200 (CEST) Date: Wed, 28 Sep 2022 15:43:51 +0200 From: Peter Zijlstra To: Kassey Li Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, quic_namajain@quicinc.com Subject: Re: [PATCH v2] kernel/hung_task: add option to ignore task Message-ID: References: <20220928074841.22545-1-quic_yingangl@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220928074841.22545-1-quic_yingangl@quicinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 28, 2022 at 03:48:41PM +0800, Kassey Li wrote: > By default, hung_task will iterate the tasklist and check > state in TASK_UNINTERRUPTIBLE with a given timeout value. > > Here we add an option for task_struct so it can be ignored. > Set this flag to default true, it do not break the origin design. > > This is useful when we set timeout value to 5s, where we just want > to detect some tasks interested. What the hell for?