Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2213020pxj; Sat, 22 May 2021 15:01:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbs1S4mvhdNPJ+hJ2Z+uVSuXHdrAgv9p72SQdGFMBsfc7NilEZm0uz0w52RTaeUdUaYAwv X-Received: by 2002:a17:906:36d4:: with SMTP id b20mr274677ejc.44.1621720882834; Sat, 22 May 2021 15:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621720882; cv=none; d=google.com; s=arc-20160816; b=X5lFe/RyaJlP/nW1JM+ukWbidwut4w4PMRW1QQe8SxVz+LUqAQPPhhO/UVP0yURTUE 4sZfgtx/EJROpjqnp3CkgoRy92pM1oeszrnWIfM7RFaQr2MbohwirkBNdtc9pytjf8ai rggfje4ehvyViA6vMZrCreH81fWcBrCGdo74ditZ/268bSPBawuegDB6DY4JEOiwfPrM nuMEIeKlGyzJ1L/3P5ZJRix5QExunTtF7xxfQlrqrNZnztPJpLsChkdz1RwRs3alK+rL DoZpMpGxB+uiLpdbkwHamB1X5Vt21Jb11orqYRof3ZsjdexHL9Ua0AQ7xE8VSv8c4pmS /Ulg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=pwIee1AT5luNOTsKD5oFDo9DtlYHVqLAdNY2EXy4Q3s=; b=oiuqYST2u2PmWwWg4GEEDvNS0xWrMW8DjzcSiRPEHOBhWilsMX+Y9mfCjfXfG1Bc/H +G/Pf3nwKSPuZFUU/EVlgWQAltefKxBuRefwcadZDH2jAPlKws6mSqeOjNjcmME+x9Da Wpk/MFyhFnDWNk1FYjwCat37KDkYxY41oJAjHGyliudvy8R4eBwXiWoGbh+FhCqNa/rj rqNHQrpz8s8+9efwh273x+nHE2WsVMgs6HHWW8Z963EHTVejRTEzKDdJpkQFICakAo1a 6cRdFupSR2lWZqN4EUMpFe2hvrTvUYRgYKBwnOOU+5eD6nMzBBK+qLotv1v1gwisHGLQ D52g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=CcrQTUD0; 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 u21si8602744ejf.273.2021.05.22.15.00.58; Sat, 22 May 2021 15:01:22 -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=@linux-foundation.org header.s=korg header.b=CcrQTUD0; 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 S231445AbhEVVwy (ORCPT + 99 others); Sat, 22 May 2021 17:52:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:49004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231398AbhEVVwx (ORCPT ); Sat, 22 May 2021 17:52:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 264A461182; Sat, 22 May 2021 21:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1621720288; bh=MVoSzpLlxUOzEdfjJRbdh/pcPsg3zH2/R6Cg3GE2BqU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CcrQTUD0iNMh9uqRCYKDE3rUcTM6gdwgpdj0aPPsJX5zsB+H9npnftceHCABUfmec geoDKMNzS4q3cdVXp/AzyXolxjKj2qszjSrYABv78/ntE/cks2ym33kSHOFxOiT0iJ tcyLrtWMudPgkorkc26P1h2ZgbhvOYRU91AszD/0= Date: Sat, 22 May 2021 14:51:27 -0700 From: Andrew Morton To: chenguanyou Cc: linux-kernel@vger.kernel.org, keescook@chromium.org, mhocko@suse.com, lukas.bulwahn@gmail.com, vbabka@suse.cz, gpiccoli@canonical.com, chenguanyou Subject: Re: [PATCH] hungtask: add filter kthread/check comm Message-Id: <20210522145127.5f56751f164df8af2d3f39fa@linux-foundation.org> In-Reply-To: <20210521132544.19816-1-chenguanyou@xiaomi.com> References: <20210521132544.19816-1-chenguanyou@xiaomi.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 May 2021 21:25:44 +0800 chenguanyou wrote: > Some kernel threads are always in D state, when we enable hung_task, > it will misjudge, we should skip these to narrow the scope. > > exp mtk mobilephone: > root 435 435 2 0 0 mtk_lpm_monitor_thread 0 D LPM-0 > root 436 436 2 0 0 mtk_lpm_monitor_thread 0 D LPM-1 > root 437 437 2 0 0 mtk_lpm_monitor_thread 0 D LPM-2 > root 438 438 2 0 0 mtk_lpm_monitor_thread 0 D LPM-3 > root 439 439 2 0 0 mtk_lpm_monitor_thread 0 D LPM-4 > root 440 440 2 0 0 mtk_lpm_monitor_thread 0 D LPM-5 > root 441 441 2 0 0 mtk_lpm_monitor_thread 0 D LPM-6 > root 442 442 2 0 0 mtk_lpm_monitor_thread 0 D LPM-7 Maybe convert these threads to use TASK_IDLE?