Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp100089pxt; Thu, 5 Aug 2021 19:24:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6xK978Ge5KiwRETux62SHA3GLInATrUSNPcxc2L+yahKdv0XQoM4ghtQQ0f7SzJ3h2V9q X-Received: by 2002:a05:6602:21d6:: with SMTP id c22mr553648ioc.69.1628216664082; Thu, 05 Aug 2021 19:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628216664; cv=none; d=google.com; s=arc-20160816; b=rvzdwp3gwBwrIDmPHq5muMxpUjvG2CK5wKLg+06vnH2qWzHzuKxkmR12+MhWMuXz1c KG6iepcoT8IGOiJ81pXYAUJxUbPQod5a9AoF+2ChGOrj9Joje9Ku99wRgA56EhcfJdMd yO2RVOrptEQDWLK4wG2gHzM7QbxVAGrvNotJ5WwHOp62PSyQjtaxXn+eC03xPWBaEP1X mZmoVl2L2D/U4k0WuN4m5pxnRnx4jFAbr7JYUMZhhEgs1AfmPxd5F5kSgIeFYuVOh08d Sy11tttY7p4Qchqs7SqkwEz0XUSxSvXV3ZKG2061mxie2bRUh9XcptubeCvj1virtE+/ BRaQ== 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=rByXjmb+4ViEvSS1MhikYbtxVtC95Opc4x62+cm3FVc=; b=J6NRP0BdUWu317/q66sFUVvLjMn0tyW68j40kp8uTKNqQFHoydVCE4XUeqUxb0nZwe 85GJM4VOozqxkHIG7BlLyYXk+by3re4KonyZVqanmDfk19OzZmUc5sho3ohduJTyUxEO 7MHKZWKjmYuoGXjTPhLfjehLGhJ8s11VmJe5ver7EQA8uw0jgqlZe5X/dbtwPdLm/RAw xbMov24hsp8dDE2DLE8Aznt+dGECy+tUKUEZj2rmGl7ScUrE4lxfIpa7lrXAiaUtzynI A5e+z0A3UV46KGYXyamqtGoER9+1KWyFD0Q1ZjIShiNrfzs5hCEDFjlVLe766L/RgOVh bx9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=UUEFGevN; 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 y13si7701246ioq.14.2021.08.05.19.24.10; Thu, 05 Aug 2021 19:24:24 -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=UUEFGevN; 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 S238198AbhHEXnp (ORCPT + 99 others); Thu, 5 Aug 2021 19:43:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:36990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232947AbhHEXnp (ORCPT ); Thu, 5 Aug 2021 19:43:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5B78E60EB2; Thu, 5 Aug 2021 23:43:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1628207009; bh=w58TtpXdxVQMYcRjot/BTYZO8pkrGjEZNh6L8v/2WJ4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UUEFGevNi4F2G3B4NIJgheM9l/OAOY0gd/py6oIf/SWsV8tgl4PzfzPSBMx6gOZI8 7qz9Ef5dsFPMWsPSJQGp/CCRfEl11Cz4Dsw3ObmnM7VuvgICFQBVV58+f/5WnLgvvG t/92P0lMnP8sPctnLn0gRaAq3Kj8LU/PJtWY2nzM= Date: Thu, 5 Aug 2021 16:43:28 -0700 From: Andrew Morton To: chenguanyou Cc: mhocko@suse.com, chenguanyou@xiaomi.com, gpiccoli@canonical.com, keescook@chromium.org, linux-kernel@vger.kernel.org, lukas.bulwahn@gmail.com, vbabka@suse.cz Subject: Re: [PATCH v2] hungtask: add filter kthread Message-Id: <20210805164328.58213d35e45d81c363b2135e@linux-foundation.org> In-Reply-To: <20210805144720.30358-1-chenguanyou@xiaomi.com> References: <20210805144720.30358-1-chenguanyou@xiaomi.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.32; 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 Thu, 5 Aug 2021 22:47:20 +0800 chenguanyou wrote: > > Either those kernel threads should be fixed to use less sleep or > > annotate the sleep properly (TASK_IDLE). > > The API for debugging when we no need care kernel threads state. > Please explain this point in more detail?