From patchwork Thu Apr 26 10:37:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Guittot X-Patchwork-Id: 134478 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2082554lji; Thu, 26 Apr 2018 03:37:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Lak1XN/vGkN8JApdfqyxGnLrNBRnboKnfLkkTE/21fQUd+5vxaYCmRufI7CSLIxACviD3 X-Received: by 10.99.96.202 with SMTP id u193mr22005391pgb.197.1524739035472; Thu, 26 Apr 2018 03:37:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524739035; cv=none; d=google.com; s=arc-20160816; b=TJ8Yh2z5UC/6sOIgYu18/YsMxW7c66z3rp8ehyLbCFJcxxVjYJln8mtRgaLUQFsMry EyiYBWV9cMCIZnUM+dMvs18VxHw0ub1cK0cbUCHWhhKeEbtN1zLjGL2mC11migR9uEBe sARajsucUwE0CyICahAxjng3N5GPEYat/ISvVwI+ow1tcEzkIk+XPzCw58zTLOBkqiKu siVgY07KewSEAy1mxErhgBQy8loY0KjEHFykhdPvDAw3JNwEfFI5vi7vtDnymTP7W8SH bSuQV3fihI9d9oOQ1oRIdCfMsz9//+OilyGjme0BzWpkJzvhsadRyRX2VTQa2H7jRlt+ 9EaQ== 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 :dkim-signature:arc-authentication-results; bh=y+uEvHwZQhQ/qGWQwBBFl8sQyZT3RfA8UaiueCBmryI=; b=oDv7KWXAR7ZcgQhq8UEGYoz512IsjEjKmjnbnDYo/1OT0+ydHnpfKCE2kIOXFWtezS X0l904XxFBTJbO4zpu7mE0RuSqlOM5CgMP8kOJKes16ga+aMIBYCNXoJXA02M6RXbvrC bpNzT6Y+FcuNtfA4tz49rYVjFoSR4H3CH0PF9cImRMT17Pt1JCh+VpDEmhDOizvTxBEc aaw3hmm+hEmD+O+SA9OaeCfqOq0nmEJH9AN+hSLz/A+EjknwA3gNWTciu1yISICZ5IhA GHGWUroAaAZfSBHvD4750RxMBtK3TifBX1dpToXuyhtPUnNCW72OisXBp3WAls6sZ7s1 XL0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WDMn2Pi1; 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 m13si13968964pgp.528.2018.04.26.03.37.15; Thu, 26 Apr 2018 03:37:15 -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=pass header.i=@linaro.org header.s=google header.b=WDMn2Pi1; 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 S1755611AbeDZKhN (ORCPT + 29 others); Thu, 26 Apr 2018 06:37:13 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:42786 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755306AbeDZKhH (ORCPT ); Thu, 26 Apr 2018 06:37:07 -0400 Received: by mail-wr0-f194.google.com with SMTP id v5-v6so5496908wrf.9 for ; Thu, 26 Apr 2018 03:37:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=y+uEvHwZQhQ/qGWQwBBFl8sQyZT3RfA8UaiueCBmryI=; b=WDMn2Pi1FQqW3ktF41Cs6pzv+2tSay6hZjyhT1hV5wBpd2XJGyZgZv9gb1NnIohKnJ fACyl3aWDSW5BqXFsWAJ9jBOJxkVs6tX9FnTxJBLyV3EH9Wf076wD4NBL4Ee52Ef7AEs L7WamA3fUMkAh4dXsiuDtKB8Hmn33ZdahNxJk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=y+uEvHwZQhQ/qGWQwBBFl8sQyZT3RfA8UaiueCBmryI=; b=S1p/eHKl4RwM6VZOKChlo+p7dHW2RT/YYSsMK45ExiAIHW+SWZKVtXA+ncB/niiaiM cZLDoYoQU9FOfDHZN35RHOyK/xsfTKwyADNl3T3hP405yXEVDavOwo84kotB/rwxs/46 ZkQiyAl0dRmFf8wypBrncXJpzB5OSKX5rXuDweY8yKktuVqKcmwFPapfKVx0+ydcxtgM 4nWMCwzhAMejzquYAqFhjUtz7bQLL/thohghN/f6QQqGvZ7nGPNmL3vD3tgrh3P/SFuw BPXUrflL5qVSsXJ9A64Jqk25Th0C4GjRk4LW0zfKU7KhSVKE+OVOwhiGndHHwfwcXKsZ yVfw== X-Gm-Message-State: ALQs6tCOWnPHp2gE/4iEqKLmdc6mWSi3ac4DlKimhUa3vpo3HB5RG9ko zKDLBrj/CKTTzWHqby3T9B0U+w== X-Received: by 2002:adf:c88e:: with SMTP id k14-v6mr19587087wrh.135.1524739026231; Thu, 26 Apr 2018 03:37:06 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:f:6020:8506:6e35:7a14:9142]) by smtp.gmail.com with ESMTPSA id r75sm10814720wmf.34.2018.04.26.03.37.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Apr 2018 03:37:05 -0700 (PDT) From: Vincent Guittot To: peterz@infradead.org, mingo@kernel.org, linux-kernel@vger.kernel.org Cc: Vincent Guittot Subject: [PATCH] sched/fair: use RETRY_TASK in idle_balance Date: Thu, 26 Apr 2018 12:37:02 +0200 Message-Id: <1524739022-7788-1-git-send-email-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use RETRY_TASK in idle_balance when we want select_task_rq() function to rerun the complete task selection path Signed-off-by: Vincent Guittot --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 0951d1c..ba49f83 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9862,7 +9862,7 @@ static int idle_balance(struct rq *this_rq, struct rq_flags *rf) /* Is there a task of a high priority class? */ if (this_rq->nr_running != this_rq->cfs.h_nr_running) - pulled_task = -1; + pulled_task = RETRY_TASK; if (pulled_task) this_rq->idle_stamp = 0;