Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp442049ybb; Wed, 1 Apr 2020 03:08:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvQL5M/ZbZnQIBNhew56z7U4a53tqwxtPXGKmnbxy58CIQ5jl/mz1MM5iGqY+CX7M7nIate X-Received: by 2002:a9d:1c8e:: with SMTP id l14mr6868177ota.151.1585735734590; Wed, 01 Apr 2020 03:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585735734; cv=none; d=google.com; s=arc-20160816; b=njb5iWTQq3jpJ+1bk+HllxoRIyETmXcK3T5wuh+B58K2S01xjqfkXx2juv+UbH8Ymn uocEAOck2xLWGAqYYqvnLUd7ZoUipEiJ41l2RITV/02SDcXI//YLa7B+ENZ+Q2eM40yq BAOPVBg4qrqV46xmw0Q9qD/xvPZ0AVnQEq/0bPKudCimh40W+K/oPTeAFnhxpQ94qKWz mV5b0UOCHZcHdWQWQ9WsdynU7vjqITg08Mv1LEmBdbmNnOlBf0PpIX7OKh/tc/7sMuHV T3pErhMhKs2A8mha2k0OElrUTeGrsO+FhYsEvrFYer/F8TwZA1JG+cNRhWmM8KmjIjWH IAjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=RksYf+q6dSBUyZMkDcFmWmu9Hr1Fry3FcTH7BUg8obI=; b=xhZfZHqzi8OWH/nKmoRbZWiYXe0g+5ZVeBA4LmP1G9D9tblLPI6BBgKUkx1qmYLWXQ ngKQga8fHXoek9NcFqV5UEe/ZE9lEdKjnBWTqEpd7pDgkOOriIS7tmX8CxxpCQHpwp3g K9zHujfhAAz5Jw071Biaq9LxsALAkHyFM6+qscwtbZiVt9ls60m43GFOa+5LC6X1vINP RiTM7PO+JoQTzMHJpXwPCoevwrEvx+sS6fln6BrF8Yg0HgtX8UvOXVpc14Iu6BxRmykp j6295kAZEymfXVds+6YTO8SZ+tyOdrYJ6I1obJR1B1tkt7wMa9fmdIO0itpnd5EoWn3N acKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=l8fvTKtC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y1si635860oti.142.2020.04.01.03.08.41; Wed, 01 Apr 2020 03:08:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=l8fvTKtC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731997AbgDAJjP (ORCPT + 99 others); Wed, 1 Apr 2020 05:39:15 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37280 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbgDAJjO (ORCPT ); Wed, 1 Apr 2020 05:39:14 -0400 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=RksYf+q6dSBUyZMkDcFmWmu9Hr1Fry3FcTH7BUg8obI=; b=l8fvTKtCgOlxGfXClvJyCWI6p6 aCkUuOvh+WWwyTaHw7Diz4G3KUbksL20hm4UMkQa6BBQTGdgf+JzYJ8ENK/r8Ck4onz3RYDfVeo8J OQLLaHrfKjgRRB/KjNrL7dj42aJVzjY6UdDQ4cosoI+m3x0P1vX6QCiRB6WblUaSwEYNv3qDPYlol HmZAfqFTTx3GUc07RIgv2SXmYKG1QKNWEYAu6Ez+R7jDkSXAnJC9ak28gAW9m1hSI6M2J2FGzt2vF pfSKlMZMpMTugUsr1lGeb30zntwmWyAJMQdaGoLcIq4yWtGZk+6MCKL3chcZ8K6DevXC/vrG7uqCV vZlcqvUg==; 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 1jJZq0-0008PU-4k; Wed, 01 Apr 2020 09:39:08 +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 1D8B73025C3; Wed, 1 Apr 2020 11:39:05 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id F3A6F29DB2524; Wed, 1 Apr 2020 11:39:04 +0200 (CEST) Date: Wed, 1 Apr 2020 11:39:04 +0200 From: Peter Zijlstra To: liyueyi Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, liyueyi Subject: Re: [PATCH] kthread: set kthread state to TASK_IDLE. Message-ID: <20200401093904.GX20713@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 01, 2020 at 02:52:15PM +0800, liyueyi wrote: > From: liyueyi > > Currently kthread() sleeps in TASK_UNINTERRUPTIBLE state waiting > for the first wakeup, it may be detected by DETECT_HUNG_TASK if > the first wakeup is coming later. Since kernel has introduced > TASK_IDLE, change kthread state to TASK_IDLE. How the heck can that ever happen anyway? Is this some virt brain-damage? And how is it not a real problem when it takes this long?