Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1134523pxb; Sat, 17 Apr 2021 07:38:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1VQXFlGlB1AkCn1uSO6x6XIha9MSIEU5isEDcEGcm37O0d+p3RJFDu5m7/lIp3j/SYEGN X-Received: by 2002:a63:1a5e:: with SMTP id a30mr3787121pgm.156.1618670338343; Sat, 17 Apr 2021 07:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618670338; cv=none; d=google.com; s=arc-20160816; b=B4XRysHUtroqcb93uy755VEkielLBonPFehP0RFhIJe5PW38YiJ+SkowcZWDgUSWgc bQSz1y39uC3hQ+cxyQlhqwK7kc0QSphPXszwDW2Kbl6SbnUMmp23+/RnrUhFF5aWcsYc Nx4AMsiyUerJ9syUSZVh0yFBVEKcQGWJjs0qmALw/Diutq+FKs0W4c2ZNII25sDtUSDH wWuRaoSTqtdjPInPKEXlbBLLmPjq+yfsrsn27p6pO10BWCHvStZXo9JRN0lWrxzmf8vi cgDYV9TmWcjsq6WoFTMPBfRoIOL5D73RQ1zdXNQn4SsW6Otx9PLMzSA3ZpGOSg2QRQne noqw== 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=l3T4NKXuj5bajMrk/OIXwH4WBKYIfPqVTOo37Ue8jmA=; b=RdBbmU7ICNO/r1YbGVbiEv5gry+tBTsIaGJAAZ6bItIRJrEBgEx/8qvuCaK7ACCBI8 7xv6ZuTco8UhE06YVHSIIvD8bnL29SobrsgEJhud0ufCzbgPtDACeDTkq72ejUVQgUNo wlDPzAvEgzotJ0tx89AzhMay5P/mTYa+tmULlkGxj7cMcyDbvXht3JQQCksj4xHPE4RS xVk/0e1UY8Ve3X5BB4Dh74wWPa7PftwjbHTRn9mFhtqpjvy3L0S0bsZXbiXCzCPBdqk4 QgSvvu6ZA9OvnRbvXf6xE91KE5ucRnkbuEP/WNOFSmfhHiWFkJ/hrQxnh+bXF9V4e0WL J5nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=oBjfi46P; 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 q6si8160412pfk.254.2021.04.17.07.38.45; Sat, 17 Apr 2021 07:38:58 -0700 (PDT) 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=casper.20170209 header.b=oBjfi46P; 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 S236535AbhDQOi3 (ORCPT + 99 others); Sat, 17 Apr 2021 10:38:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236554AbhDQOi3 (ORCPT ); Sat, 17 Apr 2021 10:38:29 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E127AC061574 for ; Sat, 17 Apr 2021 07:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=l3T4NKXuj5bajMrk/OIXwH4WBKYIfPqVTOo37Ue8jmA=; b=oBjfi46PYZUAuElktRLsV4dYwL tF5WkLyrZt/8+IQzlEt/GfnwwCggR2ckcjIJAcs3o80RAEr81I2eWU9R4D57A4tMT+IgeQ0408qo4 rakRrmvrepx3UhI8qq+5QOEVoSD8SS5r0eFoEC2ujftYbzbtnG6/XSX//SUfHSaOJrzIfYpUIdEqq paCaYFWBcbbsYDtZWEbgwoVsoBGReR4/KkEdxvLnc1dCkc480j7T3RJdd9uHVwlBkiuGygjvrlVUN j7wd86ulxgb4lFTq5a7uZF2z7fE/GCrVlXpLXcdC8ig5dMF/RXV/d+nMdc9F00rJKIEr9EPHG90mG gS/EJnrA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lXm3f-00BM7k-8m; Sat, 17 Apr 2021 14:36:39 +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 (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 9F48D3001D0; Sat, 17 Apr 2021 16:36:25 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7DBF8201F8C56; Sat, 17 Apr 2021 16:36:25 +0200 (CEST) Date: Sat, 17 Apr 2021 16:36:25 +0200 From: Peter Zijlstra To: zhouchuangao Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Andrew Morton , Kees Cook , Tetsuo Handa , Michal Hocko , "Guilherme G. Piccoli" , Vlastimil Babka , Lukas Bulwahn , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kernel/hung_task: Add a whitelist and blacklist mechanism. Message-ID: References: <1618668783-39601-1-git-send-email-zhouchuangao@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1618668783-39601-1-git-send-email-zhouchuangao@vivo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 17, 2021 at 07:13:01AM -0700, zhouchuangao wrote: > eg: > In Android system, we usually and some processes to the whitelist. > static task_t task_whitelist[] = { > {"mdrt_thread", HUNG_TASK_WHITELIST}, > {"chre_kthread", HUNG_TASK_WHITELIST}, > {"scp_power_reset", HUNG_TASK_WHITELIST}, > {"ccci_fsm1", HUNG_TASK_WHITELIST}, > {"qos_ipi_recv", HUNG_TASK_WHITELIST}, > {NULL, 0}, > }; What are these tasks doing that the hung-task detector fires on them? Should you fix that instead?