Received: by 10.223.185.116 with SMTP id b49csp3533429wrg; Tue, 13 Feb 2018 03:58:53 -0800 (PST) X-Google-Smtp-Source: AH8x225yXDeroNMtq/1+wexVVng/WRVcJbCVAbsncN6M+/w4BXq+ld7NA5+2HaoNAmw0MRNuA8m9 X-Received: by 2002:a17:902:3103:: with SMTP id w3-v6mr931234plb.3.1518523133490; Tue, 13 Feb 2018 03:58:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518523133; cv=none; d=google.com; s=arc-20160816; b=B3lp0PRgu4KRpWIy3hl1MVVwenYoRnaVtK9V7CXfNJ36SlLwpSafhHfjatwM0X3Sq0 L3qYFTRFHwmNlWaEJOkMCMz2Rh/KMd6NgrJdmVXKdrxS0DmYiIluTGoh6AMuCHj9E/1p tbyN6iX4anzmAL6EVO4kePUXdEn/DMrorCcFGRzbysRE2WWUu4F0EwOhjUHWbFZyBre5 VK4uNZD/e6EfBDWT1FmR3vVExphIJvTL9F02TXzkHD0PnFXF75KZ2ZSvuisIRTv47yrC vY0UnrE+HRejYeMSB53JzE6ZkWYr5bjk7oBmJ54RZQjXclyhF33Ms8NdjHo5VrRytf3j s3pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ZwipWhIK/aM/69HF17HD8HufVkWqsYrYKzkqKaqNN20=; b=fPHZJTy664mkxgHPXHrH9uz7kb5OwU7ODsDAKqwbBS03XMyHuxqekgNtYC0RyMk2Bg J1mAIBhS8d66eUo39exdZvdKvPH9aA82ms+fsmpuOZt3w21WxHpUthuoTIi0cdr2maJ+ BoHzJOeBQnc+fEVeIK3B/4LooNSBt3C7YLfoTR6wXzYa2OwRvgIJ9rNQRyU/BtxAup1A XCyLXRndotaigRAyhA2YkMMci7yk2ldhiVagooL64Q9sdvhrRyEkGPLjSkb6lrHb8cJo iemxoHNDsXuxaEUoRhxr0Lr+24uHqORAoucLz8ceSpLE814di3EhCMqYCOUQ73qTTmst WICQ== ARC-Authentication-Results: i=1; mx.google.com; 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 x20-v6si4104770plr.586.2018.02.13.03.58.38; Tue, 13 Feb 2018 03:58:53 -0800 (PST) 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; 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 S934951AbeBML4q (ORCPT + 99 others); Tue, 13 Feb 2018 06:56:46 -0500 Received: from mx2.suse.de ([195.135.220.15]:35712 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934861AbeBML4p (ORCPT ); Tue, 13 Feb 2018 06:56:45 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id CAA93AD14; Tue, 13 Feb 2018 11:56:43 +0000 (UTC) Date: Tue, 13 Feb 2018 12:56:42 +0100 From: Michal Hocko To: Chris Wilson Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Tetsuo Handa , Andrew Morton Subject: Re: [PATCH] khungtaskd: Kick stuck processes Message-ID: <20180213115642.GR3443@dhcp22.suse.cz> References: <20180208190753.17690-1-chris@chris-wilson.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180208190753.17690-1-chris@chris-wilson.co.uk> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 08-02-18 19:07:53, Chris Wilson wrote: > After spotting a stuck process, and having decided not to panic, give > the task a kick to see if that helps it to recover (e.g. to paper over a > missed wake up). huh, this is just no-no. watchdog is there to report problems not interfere. You cannot never know whether the sleeper is prepared for spurious wakeups. Do not paper over bugs... > References: https://bugs.freedesktop.org/show_bug.cgi?id=104009 > References: https://bugs.freedesktop.org/show_bug.cgi?id=104682 > Signed-off-by: Chris Wilson > Cc: Ingo Molnar > Cc: Tetsuo Handa > Cc: Andrew Morton > --- > kernel/hung_task.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/kernel/hung_task.c b/kernel/hung_task.c > index 751593ed7c0b..b32acb6bcc63 100644 > --- a/kernel/hung_task.c > +++ b/kernel/hung_task.c > @@ -132,6 +132,8 @@ static void check_hung_task(struct task_struct *t, unsigned long timeout) > trigger_all_cpu_backtrace(); > panic("hung_task: blocked tasks"); > } > + > + wake_up_process(t); > } > > /* > -- > 2.16.1 -- Michal Hocko SUSE Labs