Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9753102imu; Sun, 30 Dec 2018 04:39:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN62XvxQKdaYVzvahKR0+UEHstYGwWucY1nTpo2ksSDTJ7n6mK7rSTcENhUiW8LXLNy/BAxN X-Received: by 2002:a63:3d49:: with SMTP id k70mr4403532pga.191.1546173562747; Sun, 30 Dec 2018 04:39:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546173562; cv=none; d=google.com; s=arc-20160816; b=073gfPrHDxWDctTTa2JUNdOoYWpUmZrYEAyl8FQAgTqBhoTW0o4zlT6wS8lEZYmtPV U9uTeNcIwix5p6zFxI/Ndejq7jSA1/0239NR7a7tieh3gjg+VHK4Dn1pCXHKCoG+PE8A 1xahxXZee7wKVZHRobNElzwLC2PyZ6NvVDLnIqDmfLviRG+kSxm9aH5OVp1AdNyxxGNX 8P2BMQUDbAqdnA6nav7pNRy9p9m+sPDLqFsfSwX8PwMR2xRMAwDlxwHLyXXQXOKYJNfY R6DGIXP9TZy228yhJXCFWZXwnCRdrI+qAr1D38jSKYityweUnE+chvz50kmVpyuVLZFB lLQg== 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=i1mq4t38uYbLqxlD5aox2nT0EoBqfFO/XvxILpGueIg=; b=Zwc4VimRlLgeTHmA0NcL9/2tFdSb8Rx6ymQfR01uXUiOumw2+2qiUy2R9/eg8zZDDY K9WMy9KngdZnbXYz8k+3lzqGpvMGRU9a7Kkh7O2lg44W/jnPQ2y3zPI6LDSFOEoAxtrc F7+y3CNeP3EXAcRN5SAGA5byfjivJKfm3TuyEaoq5yuarixKa72gXyyXHlNNPAfhAGOv jaGn33Lzg7OnI/T3/2jKBc/PBiBSl7R5GFWoIW9hNhVeE/sDUOtrnqrFwn1b3boDFBZ4 LtV1u+6Fq6IBgdLskaU+5DqcYZMlPsTtd43zzNfXAKzERj+ejXQkDvbtSD0iL9anHO5B x6Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O2nXbAMt; 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 r11si41316526plo.319.2018.12.30.04.39.07; Sun, 30 Dec 2018 04:39:22 -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=O2nXbAMt; 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 S1726120AbeL3Mgi (ORCPT + 99 others); Sun, 30 Dec 2018 07:36:38 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:36799 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbeL3Mgi (ORCPT ); Sun, 30 Dec 2018 07:36:38 -0500 Received: by mail-it1-f193.google.com with SMTP id c9so31723599itj.1 for ; Sun, 30 Dec 2018 04:36:38 -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=i1mq4t38uYbLqxlD5aox2nT0EoBqfFO/XvxILpGueIg=; b=O2nXbAMtEChqjNQlq6mXIhMRYh+OvxNVj7TnS62gVZJ6RTaU/fYMaKB/lZMYwB/6wq 56Sh4kQRoC5/R3AP8wlStBcHeaoFIZcyY2WtqAu0OLA2bGnL6JCOQPBMppe2TgXuyTn6 xb/V5zIOja//0/e6YvzbrXP/jDWD1PmyYPb8s= 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=i1mq4t38uYbLqxlD5aox2nT0EoBqfFO/XvxILpGueIg=; b=UOte/TseGj2iSi0cWZ488j0+XpgAlrSLgeq5N8F2J8xHEMKQu/ThccSKKBsMF0PSyY VXmBoBzpA2Xa/47lQg8tll1WMnZ1wrkBPLOoMelOFoq7siiHQuDPw1d3/TquFddO0w0x wqwrlDQ0XBsq4x6VuNB3sm4Me1Th2fnRVDzVzkkdutYtKVhkkkm6AU0NZLaGSmt2EGMa 4v1LTKJZ3SZkh8poCZkknXk7hc0wI8T19tMQNsIe9WLvPSaOeH/6MDginv3KT4D7E2IG xZ6IxoUnz4lt/mKeMv7sE9ATqoP1mDoIzwUa50U7ckVPu+Yb9uR+YiwqYeIjMCesnDRk rcYQ== X-Gm-Message-State: AA+aEWZCDJ5NrO8Ck2ZsoI8+5HQ/XvVZpWkQCDKNNp0zMDkNrshFzAa/ bZqvgCptavWCtcb4dy2eUSvUr7AyBapahxz6x2xApg== X-Received: by 2002:a02:7f08:: with SMTP id r8mr23127713jac.20.1546173397523; Sun, 30 Dec 2018 04:36:37 -0800 (PST) MIME-Version: 1.0 References: <1545879866-27809-1-git-send-email-xiexiuqi@huawei.com> <20181230120435.GA17231@gmail.com> In-Reply-To: <20181230120435.GA17231@gmail.com> From: Vincent Guittot Date: Sun, 30 Dec 2018 13:36:25 +0100 Message-ID: Subject: Re: [PATCH] sched: fix infinity loop in update_blocked_averages To: Ingo Molnar Cc: Xie XiuQi , Ingo Molnar , Peter Zijlstra , xiezhipeng1@huawei.com, huawei.libin@huawei.com, linux-kernel , Linus Torvalds , Tejun Heo , Peter Zijlstra 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 Sun, 30 Dec 2018 at 13:04, Ingo Molnar wrote: > > > * Vincent Guittot wrote: > > > > Reported-by: Zhipeng Xie > > > Cc: Bin Li > > > Cc: [4.10+] > > > Fixes: 9c2791f936ef (sched/fair: Fix hierarchical order in rq->leaf_cfs_rq_list) > > > > If it only happens in update_blocked_averages(), the del leaf has been added by: > > a9e7f6544b9c (sched/fair: Fix O(nr_cgroups) in load balance path) > > So I think until we are confident in the proposed fixes, how about > applying Linus's patch that reverts a9e7f6544b9c and simplifies the list > manipulation? looks good to me Thanks Vincent > > That way we can re-introduce the O(nr_cgroups) optimization without > pressure. > > I'll prepare a commit for sched/urgent that does this, please holler if > any of you disagrees! > > Thanks, > > Ingo