Received: by 10.223.176.5 with SMTP id f5csp2272190wra; Thu, 8 Feb 2018 11:09:16 -0800 (PST) X-Google-Smtp-Source: AH8x2275J+JEx0+hk32rdqojQrizU6CJIbLd1+s4zhI7tBV1qY5j/024O5T/S6RtKTrc5f1t5rI1 X-Received: by 10.101.100.69 with SMTP id s5mr150912pgv.413.1518116956758; Thu, 08 Feb 2018 11:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518116956; cv=none; d=google.com; s=arc-20160816; b=XEFWPcZee2n6Srm6z2okK99fmxWgM4jM+oepsismImh+PrELXpRyq1O3KclXaW2MJy 5ZX3HtUUFUqyyVJA3M1O1ZyvGuBy3edNkHiF2Tn5LPDzybJLCP082rSYP5zpTFquMU7p Ro4ICXKS1WDxLRlMgjnn9lFfcyGPaAjg9McijDtcFcNiiQhIFS4K7EabbdHigcK83vGD SDp4xIRyg5YTVRCCP47Ditxhyfrb85rudXn+fUbk958yrlgdCaJ3IgDuij9eIt7GaxBZ dd2zsy1XyR9/MSxFqWWt/NW4WoMNVNfdrZqtM0abMQJ4nOB6TsZPkA11nn+gUFrS6lst ixGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Ss+PTMhEyUFzZDbbZrRzMtm0dtRKUzYO9YLBeJhYFHg=; b=j5fodvEVrfwl/0j5kSXQiY842ZwMCsnON9tCToDi0ohB0K92usMCQRMDvSsvEMJaT5 2+sxwRRdVNHs/5ua5K9zdMXPvYKJj3wB9NFj+6ttFSAx/ZRKOAW++ZyqNkIL+NXjE8rJ sVKNG6RGfHe9zuSDhBVzr9VgUVmfM2hGzTJ1noJzvtZSqzIq3apqQg9HmMgTUwQezv1p +sgrmypRFGerrooLNyBBM+5fZ8qAhibCTWOL4R/Y5QlWAtR1rdoG/CzlQfqWHG8StZH2 B6gEET/AWSbS0Y0UnXDel2PbgYoXvWx+R+TcfLi+rWLht45Gcdtfe0y2IyavV7ra6n6s YsFQ== 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 y72si375929pfd.88.2018.02.08.11.09.01; Thu, 08 Feb 2018 11:09:16 -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 S1752218AbeBHTIS (ORCPT + 99 others); Thu, 8 Feb 2018 14:08:18 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:63845 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751544AbeBHTIR (ORCPT ); Thu, 8 Feb 2018 14:08:17 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from haswell.alporthouse.com (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP id 10622009-1500050 for multiple; Thu, 08 Feb 2018 19:07:55 +0000 Received: by haswell.alporthouse.com (sSMTP sendmail emulation); Thu, 08 Feb 2018 19:07:55 +0000 From: Chris Wilson To: linux-kernel@vger.kernel.org Cc: Chris Wilson , Ingo Molnar , Tetsuo Handa , Andrew Morton Subject: [PATCH] khungtaskd: Kick stuck processes Date: Thu, 8 Feb 2018 19:07:53 +0000 Message-Id: <20180208190753.17690-1-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.16.1 X-Originating-IP: 78.156.65.138 X-Country: code=GB country="United Kingdom" ip=78.156.65.138 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). 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