From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9DB61A38F9 for ; Mon, 10 Aug 2026 20:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786395371; cv=none; b=pgu7XDvcSQLQFRzzV2HZfXx7Dd+3mXMht3YV39BCzQ375Je3SIqf1WrtGFsDofGEsZfFpPfzNA57spVpGeYxCuQm/75jfxEnPb28EX2o2GcMib+b1YifOx9+xYyZFSFHa7xrMjmgA0weux0SX3S4UL5e7VIt6XpYktKu7LXkNHc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786395371; c=relaxed/simple; bh=akFZw964I8OHp7dHpJ9HoJzHP5VwoO8plLSuRgBuSWI=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=TJXmflriRuJYG0JKhoH9VC4v5QkgtbMd5dFejybtLCk6b+eO6zL1GhWjVGuSlV+6+nHakspbKazzkXux+Ka0vh8VnGHLyXyabzL6uRMEjZsuh+6PTIX3WoDI1Wgt8msiBe05w005GNwPvQB1dQbTP5ro8myFkvE1IMDXM84A4vo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=YFCDPCwR; arc=none smtp.client-ip=198.175.65.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YFCDPCwR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1786395369; x=1817931369; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=akFZw964I8OHp7dHpJ9HoJzHP5VwoO8plLSuRgBuSWI=; b=YFCDPCwR2USlNw6m867GUIcOYJGJomblt413P1nZeL7YRhrH8P2Ygt0h cDFU53P7E3IBTzkGmtHRulVW2LR3iadTHqnTzTL7dp2jnwDFwUiTfw9aF dul7EUeAATHk51t9Zq2wWjKTn1z+VLaBUiZ/Xfv7GN/X90OyTk9XHzbVB MnPzH/x2PqW/xWbCzMiwjozwtznjMLs/rMGZdGekKEXpGLD5n52mCxg7g u/uHxdIA0ZY1VPVLp629y8b2gHnENFk8MhgBNGaYY1ufQPFfnBuYXZfla YQGiZCmGUYJC1819pl1XGyjbpqVMtcH/ElW/do2DObB3H/EuLqJUi/3Co w==; X-CSE-ConnectionGUID: /O9wpOfyTWuGGFGXqWSsVQ== X-CSE-MsgGUID: L4YKJA9oRy+G81lTZjgHsg== X-IronPort-AV: E=McAfee;i="6800,10657,11871"; a="90599434" X-IronPort-AV: E=Sophos;i="6.25,216,1779174000"; d="scan'208";a="90599434" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2026 13:56:08 -0700 X-CSE-ConnectionGUID: 0TyogKyzQsqjQ/u+omSwAg== X-CSE-MsgGUID: x04ZbLbLSouwsbyRNHbwUg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,216,1779174000"; d="scan'208";a="260547556" Received: from unknown (HELO [10.241.243.185]) ([10.241.243.185]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2026 13:56:07 -0700 Message-ID: Subject: Re: [PATCH v2] sched/cache: honor migrate_llc_task semantics in active load balance From: Tim Chen To: Lu Wang , yu.c.chen@intel.com Cc: peterz@infradead.org, mingo@redhat.com, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, kprateek.nayak@amd.com, linux-kernel@vger.kernel.org, chen.yu@linux.dev Date: Mon, 10 Aug 2026 13:56:07 -0700 In-Reply-To: <20260809105343.1189051-1-wanglu.priv@gmail.com> References: <20260801122252.2476258-1-wanglu.priv@gmail.com> <20260809105343.1189051-1-wanglu.priv@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.1 (3.58.1-1.fc43) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sun, 2026-08-09 at 18:53 +0800, Lu Wang wrote: > A passive load-balance pass marks group_llc_balance as migrate_llc_task > and queues active balance when it cannot move a task. The CPU stopper > callback constructs a fresh lb_env, so select the stopper callback when > queueing active balance to preserve the migration semantics across the > asynchronous boundary. >=20 > For CAS-directed active balance, reject a candidate whose preferred LLC > does not match the destination LLC. This keeps the fallback from moving > a task away from its preferred LLC. Thanks. This version looks good to me. Reviewed-by: Tim Chen Tim >=20 > Fixes: e4c9a4cb244a (\"sched/cache: Add migrate_llc_task migration type f= or cache-aware balancing\") > Suggested-by: \"Chen, Yu C\" > Signed-off-by: Lu Wang > ---