Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp138036lqp; Thu, 4 Apr 2024 08:59:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWW1kaCmVYBMbk/fTCghSMfHjLaq2H9a8Wd2zCxOtKlXB8ov3h5Yxg0GRxARFwtspchQibS2tyU+3HQDGaoVzzW1SAjJB3IxxIe39EaEw== X-Google-Smtp-Source: AGHT+IH6tFnwrRP3X50ELlDjEEV2VDDAQkw86nmM/dx8pkVus9KyxQpulFS4NwOtP1gRhhy1otAc X-Received: by 2002:a05:620a:6113:b0:78d:455d:db17 with SMTP id oq19-20020a05620a611300b0078d455ddb17mr996844qkn.4.1712246348921; Thu, 04 Apr 2024 08:59:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712246348; cv=pass; d=google.com; s=arc-20160816; b=fPOg3PCagXPbY4n/rkxDcPzF7PSNSpw9FrTJ1mAb/EaStCZxBha0GtujXgpfP9JHUN 92Y2I1jwYtRSggFcMb+JV/3EjzCkHslpxdsPdAIqwn1OoXiURPWEQMAwXBFWeWnEzcM+ LvursAv1fuzhzgGpoPMv2ZlCMB9Y2OXAjo+e4a5jMGR/8IYFr79bzobkF94lBNJ2wkrk HLz5o2+x+pg1yemFz9p0oe3Q02d5Lf/F6ECLg4HkbVVeSeE4zLxbvR7AtpuUWYR8OgeD 8MWRtEi+c7kZ23WxGln/nDCm9WPXv8mxHqBp8tvfcIP6TQ9blbGq6c4VspmRouiybecr E4rw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=NZR6FFh5triaxzvgEajm/H/9Zv9Gv7TXy+hMNkzqKys=; fh=2PzT/NyNpP43lelBa7c0GWWmrzx5NaC0Q9blmF4kpck=; b=oyx6CI1z/WW1IZQzt6dAN6q7k6qTvLiRHZJv6FzsBWIA/CnN/bGA0CFFy87CPAFu9Q JEyajk22xJifzNxLrxDsU1j6jisE1PIGCIL9hQ4CKAkWhiV5COsW+AN9EcBlQEvZlzZc XdnM8NoQU9Kd35fTVC5i397r1DitjJFBR2KW3jfvek2SQSk7a+pd0V7+oyy9xK56mPO9 bwWLsaimw9TrXAe3IGZYqbREkBBodvU1EJv+iuYKChOdmowTW170HODGZFm6yjigoPgP 9ddLevvWQRXNq8RJSEoLRSa9yuwqyTYHMMwcDVnXMOiWYib6JXMyLoBWB4XMV4e15kkP tjhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jy4v4Xzm; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-131778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r16-20020a05620a03d000b00789ff603eadsi16338915qkm.589.2024.04.04.08.59.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 08:59:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jy4v4Xzm; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-131778-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131778-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AE2771C26E25 for ; Thu, 4 Apr 2024 15:58:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5F6A12AADB; Thu, 4 Apr 2024 15:57:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Jy4v4Xzm" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65E3512BEAB for ; Thu, 4 Apr 2024 15:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712246267; cv=none; b=KT0mqU702AhQVba5IBPEnikky0aaUlXqFqd/Rs6KHrH663YgKW2aMUaTT+oaHa1+IGjfXeuSwdWlHynu9gdvfRNh8W0OyrhwWMytwN3WcoQF2fc4+GEhM/2O8+er+DfwP5Hmzj40ECK+p0GNa2XIt//vr3N6FZTTWD8C/StdtKI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712246267; c=relaxed/simple; bh=bIhafewhD65Nv4K87uihFdEliJQyj7NLSA3aEzT5HOA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=uTftUw3URPnsopWq3asFeksoYw3uhPPD8bFjCxPELAQ8iXEue/VrXL3B5uFwIx+5yN6VGJY2rZH0MK4i8h7y0ntrbBiKJgdjyq0z+9txx07b0mng4r+XuSvxxHNJNVQbz8WYJ0ZGftttsYtsVfMaJGKhnu7QJPweDbcMSfV6e1o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Jy4v4Xzm; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-3439ce73766so614851f8f.2 for ; Thu, 04 Apr 2024 08:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712246263; x=1712851063; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=NZR6FFh5triaxzvgEajm/H/9Zv9Gv7TXy+hMNkzqKys=; b=Jy4v4XzmvVvkkJcuT4Bx0tRTBbE5ggnrVSU1rDnHuLbxMrYlrkh4M6/QAdkaPMCNRI 4TqNISNaYl1vfol6FC16CFym213MmTtid8n0nUc3P103u+KvNmA0RKNq3bvgGiIdm2IA 5+Om/LAob856oR2t0npNKvievc6IzgzuHkxIOOyizsJzKls01bdpB4syZQYaGMTsjnfd TXx1uKBD8d03teFUIw1kQuOIe8qmvg43tefTkBp4qDNMJ/KaN4EyzFryWjwYZ56HLRtO vF5bT+x47+DUMlYtrhn8gcU2XBZigHWFK6ioIWnNBFWdRi1jm2JlMyjAlYFBG6bvlQyt fXrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712246263; x=1712851063; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NZR6FFh5triaxzvgEajm/H/9Zv9Gv7TXy+hMNkzqKys=; b=vjI4BvKotuU2ooLu2xsfubDu6ZRJpwSprq50095Jy9q+ABS+Z25lTyIWG7wieh4AXZ GGAh67Y6Yty6yGlFW8z/JaWYdvwBf/z4RjNqyCN9KbNV5F9GjBCrO/l6CSSMpUDpdh1F qonq4h4nxE1UmsefF/HwlLnUcwvUdLf5EKrvEWpqW6cZJf/GNlFculDxCu9XjoiP4TKz zhZkA/O/2FKvOiQqiyh+S4w5ACqMyc8JBqGCP+0p4lIDz0mxNfL+pf4Ej+kYbjIR5zqR d7fSbYiZUeWDX3aueo3ssVgQDaRbVGfAQCq8xXBGXe1YQBa5ql/EodGvsUqG8N9J5WiF TQkw== X-Forwarded-Encrypted: i=1; AJvYcCXZwilY3vgOJc4FiZg8TphC/diUGgs2b39P556nte/SX89NyH6USPAmMivZcrTGgC7K1qsmmb0HoxZfS0m9HomNv7j9fDlIXULBQrgk X-Gm-Message-State: AOJu0Yxcw2RU8DijlgsEHENfKWgCS1Pvw+TS62/52l3bJdoGVVQDSyyt G+60QOKH80aXwXHyjGBnG2e9unC6DWiSPA8sozDjRCrM/XXgjAgI/SZZ0lLc9XY= X-Received: by 2002:a5d:5403:0:b0:33d:a944:54c0 with SMTP id g3-20020a5d5403000000b0033da94454c0mr2225858wrv.22.1712246263577; Thu, 04 Apr 2024 08:57:43 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:f:6020:b106:a204:7cdc:fc96]) by smtp.gmail.com with ESMTPSA id m18-20020adffa12000000b00343cc702c56sm1232806wrr.47.2024.04.04.08.57.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 08:57:42 -0700 (PDT) From: Vincent Guittot To: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, sshegde@linux.ibm.com, linux-kernel@vger.kernel.org Cc: Vincent Guittot Subject: [PATCH] sched/fair: Fix update of rd->sg_overutilized Date: Thu, 4 Apr 2024 17:57:38 +0200 Message-Id: <20240404155738.2866102-1-vincent.guittot@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit sg_overloaded is used instead of sg_overutilized to update rd->sg_overutilized. Fixes: 4475cd8bfd9b ("sched/balancing: Simplify the sg_status bitmask and use separate ->overloaded and ->overutilized flags") Signed-off-by: Vincent Guittot --- 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 1dd37168da50..bb1ae4ed0d91 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -10661,7 +10661,7 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd set_rd_overloaded(env->dst_rq->rd, sg_overloaded); /* Update over-utilization (tipping point, U >= 0) indicator */ - set_rd_overutilized(env->dst_rq->rd, sg_overloaded); + set_rd_overutilized(env->dst_rq->rd, sg_overutilized); } else if (sg_overutilized) { set_rd_overutilized(env->dst_rq->rd, sg_overutilized); } -- 2.34.1