Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4620050ybf; Wed, 4 Mar 2020 07:27:43 -0800 (PST) X-Google-Smtp-Source: ADFU+vtfqeLD2HN0sbgkg51x1rsyhCSV32tpVGhfyMAYxKNgrb4Aq/ZxFjk2pGoR0e9x7YXY4ohr X-Received: by 2002:a9d:77c3:: with SMTP id w3mr2639041otl.245.1583335663622; Wed, 04 Mar 2020 07:27:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583335663; cv=none; d=google.com; s=arc-20160816; b=kEKokew+zyWiZ6/XE2kGVafnka109DfOKoBLsSOlX39m3iy8bErZc2ptiWCDmq3bPj rZASH7L0KP1S4Yet4Fpjf4vduWY6uPh6A1IYjR/KnezMNLxzqZS3+iNYxeR4QLCg2lw3 SeZR+T+Ur9zy2NmELN+TTMxwxdG5QWaYkheTv5FLnnuH3f8xuLx73sB87wQgCnOW/tv1 N6IQeWox0GKyn8er2V/b5qreUYJj2O6RfTSjUnjq/ZqCXwC9X0645rYLrUusCacWxRtf F7Gb+Q5gEKDcMf0PPu2MKnOFf+BAPEipVSjOcdfivO0/kQN/R4McSr4yR1j0x5s8lDGy AQcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=F+RhEtXPtmYR/U69zTfewCstn7kMyr6p5puYGeQETdE=; b=lnplFuHyl17AabT4rwnuh+J2PzZjhmA9EZRpgNwf5hfuiW2QiH6shZ3pSBEmY11O/y /SbDxj+dlqdPaj1Xje/+reQ2L3IAhq2yyyTA9BtCT61CZkz5XFyZNNEFe6XZ0244CX7i Httx7dEFYCugRIU/F+JVxVKRtBnqIgzYzNw6kd1ZR1WJZfe6AK88hdd4vF010R9txY4B Ev2OGNvUm5INnTnj4uNgRJqq+XepjfpUs5o8qJYV5dnG0pmAElBg6EKZGBoQzOynBF4T hjSt4FRknHBGBvz4KiYuPMgO/VtMAhT8UzwGZMhKEFB2MxPqX9e9G+USrBpVS/Sv+Wlm gW/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WDIEE+bK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c9si1291955oto.149.2020.03.04.07.27.31; Wed, 04 Mar 2020 07:27:43 -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; dkim=pass header.i=@linaro.org header.s=google header.b=WDIEE+bK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729447AbgCDP03 (ORCPT + 99 others); Wed, 4 Mar 2020 10:26:29 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:42367 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726263AbgCDP02 (ORCPT ); Wed, 4 Mar 2020 10:26:28 -0500 Received: by mail-lj1-f195.google.com with SMTP id q19so2464744ljp.9 for ; Wed, 04 Mar 2020 07:26:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F+RhEtXPtmYR/U69zTfewCstn7kMyr6p5puYGeQETdE=; b=WDIEE+bKVVDorT0Hdt3zplxv3MgbUY2SU6erAp9OlB9TrpLm9bcErrlDIGtaAY/L/J qXJR4sLnpm5M/u6NP6VXkNyYFI7uP7cSHO2Qj9QPLMxR2s49OwHhUIP5HINz7cB1lWSH 67RSIJZp7/PtFcqNVk4Wr09RPtHjlZq8rE7dPQEU5IYkyicfBbDph9DyUmTMQTeKW4s/ Tv+s1dVc78VfeDVBDExjbtLwz4y97cA4pgdAmH72d7OA2OSngMgUq8nayKP9fWdaEpTp ntUeHnNytUUdjGqJUrWDrENv5g6TqpWSlLRrHdcs5N7MxVwzJ7vN+RcS3R4SCfiG+04t m5ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=F+RhEtXPtmYR/U69zTfewCstn7kMyr6p5puYGeQETdE=; b=Z9TRODGXlhiGHRNh4aWhtC8NUyk3L0ymp/cSr6a2gGTm3CpDDsXW1kLHR4JYv78XrH mrMsE2ENqVB1CZmEomMT3uV0cTARB/2du7AhEDFsxqNyuRm47TMReziP4X8CBntB0UNZ 0ZjPtEcOBDveW6S3Q9k4gzkOlQHT0TkRYRMfe+TM3yU4tiL8kBMgt/qHg8sAVL/38KAC vxyfZKFy2c7zfUGN9YQ54FaSSLru9BZCKMg4xjuo2yrm/98sA5S+vZFtBGHa3WLP3elS /5/TsNsZ3sKkp4jaXyfDY2Af0SrkPgteTlPULFSkdj/QUvBGKo+6ibF4Pyz6RYzWu/Kl NrrA== X-Gm-Message-State: ANhLgQ3I2lbI5zxUY6Woqmvwk3c4zUGJN+KlV6zgbz7OnHi7BBMHG2vS eKwu4nIpU9H+nYfWYErmkY2oEY0djfk1KAeH+Wo7pg== X-Received: by 2002:a2e:8090:: with SMTP id i16mr2341545ljg.4.1583335586741; Wed, 04 Mar 2020 07:26:26 -0800 (PST) MIME-Version: 1.0 References: <1a607a98-f12a-77bd-2062-c3e599614331@de.ibm.com> <20200228163545.GA18662@vingu-book> <49a2ebb7-c80b-9e2b-4482-7f9ff938417d@de.ibm.com> In-Reply-To: From: Vincent Guittot Date: Wed, 4 Mar 2020 16:26:15 +0100 Message-ID: Subject: Re: 5.6-rc3: WARNING: CPU: 48 PID: 17435 at kernel/sched/fair.c:380 enqueue_task_fair+0x328/0x440 To: Christian Borntraeger Cc: Ingo Molnar , Peter Zijlstra , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Mar 2020 at 08:55, Vincent Guittot wrote: > > On Tue, 3 Mar 2020 at 08:37, Christian Borntraeger > wrote: > > > > > > [...] > > >>> --- > > >>> kernel/sched/fair.c | 2 +- > > >>> 1 file changed, 1 insertion(+), 1 deletion(-) > > >>> > > >>> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > >>> index 3c8a379c357e..beb773c23e7d 100644 > > >>> --- a/kernel/sched/fair.c > > >>> +++ b/kernel/sched/fair.c > > >>> @@ -4035,8 +4035,8 @@ enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se, int flags) > > >>> __enqueue_entity(cfs_rq, se); > > >>> se->on_rq = 1; > > >>> > > >>> + list_add_leaf_cfs_rq(cfs_rq); > > >>> if (cfs_rq->nr_running == 1) { > > >>> - list_add_leaf_cfs_rq(cfs_rq); > > >>> check_enqueue_throttle(cfs_rq); > > >>> } > > >>> } > > >> > > >> Now running for 3 hours. I have not seen the issue yet. I can tell tomorrow if this fixes > > >> the issue. > > > > > > > > > Still running fine. I can tell for sure tomorrow, but I have the impression that this makes the > > > WARN_ON go away. > > > > So I guess this change "fixed" the issue. If you want me to test additional patches, let me know. > > Thanks for the test. For now, I don't have any other patch to test. I > have to look more deeply how the situation happens. > I will let you know if I have other patch to test So I haven't been able to figure out how we reach this situation yet. In the meantime I'm going to make a clean patch with the fix above. Is it ok if I add a reported -by and a tested-by you ? > > >