Message ID | 170785374329.398.3918391631110866746.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-64192-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp771677dyb; Tue, 13 Feb 2024 11:49:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX2ooV+RP8FTVUARle0UuuAmPq1fBcBLjNXWoQjBbHbHHGBb3VHaK+IKJr+hPk1WYG5NPlu/19zw3MhNwvDaDU1p+32CA== X-Google-Smtp-Source: AGHT+IHI7bQt1zNO9EaQLJDe6DUWUSwTh1Po8BseBtTo37Qv2u6E9/Mxrew/ykFd8lV4u45BJ9H9 X-Received: by 2002:a05:6358:7f1d:b0:176:6144:2f12 with SMTP id p29-20020a0563587f1d00b0017661442f12mr253387rwn.28.1707853767327; Tue, 13 Feb 2024 11:49:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707853767; cv=pass; d=google.com; s=arc-20160816; b=YfRPb52iNfcJLPAJz2s11p7t/WV6GzuXztaFdsQ2hcpojm1EUprvbNCrGIGl7pnK1n Zp+9wkPRGog+E5NoORkInBFPKyLGQD3gS48sWIi3ec6t0Aus3RutK0rNY4TfkhVrdt8f HJj9cdC81GLaqJ0gLKB2L6HWks0ahcHgdqi8faFcQJlnO2L2dvDTdH87cbJ0Ded26oab yuXJ2eQYzysw9LHqJ58EuPQNKL6jUpbjwR/WzhzCY68TqPEeQVmkRRlgnMNfTM1psejE WDnkzg5tP82ZZtwGxn1E3E87E5W6S/0gOVGn16iHNO3Pqzm8k0YVSwc0du5fl2MpByP0 DMjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=eHdL9fwqzOFVunQ7aj6eAS3JJUQBeZz3a16vfCQiKHg=; fh=OLG2bFeh1Oa6IbNwUaIfFfrHQLvQASqLBZopKf2gwBI=; b=FKFiq3JY4J1BCGh8YsD7b2IlJ6r3PoNOYY20NrWL+/qnMgFiC74ZtS3BuE7PpGRp76 XEz9h+HifSycIV69wnQ0AhN6ttEX+K/jcyzZWGoufDYB2JrJ9nrAJq0OemlogBaORmQ1 XH8NLNxN0w/xyiNzE9HaiGmA444QZC9u1W8a6bP+BYfqFsi+AIv/2ObtapTo3TJxEgDX rGkX9QepeH//586M3S+q8pGil2UlqbZH/YwSIuBn3PB9je1Zf+ROw9+31f6qh1FaJYQH Z01WxeyUWgoxNwsom6yaoQpxhmvY4LlRsrEuzOWkiK3d/ywGPH/O2xQpnEPHkpUfX2DZ ApYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="dJOydb6/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=iJMFGqFs; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-64192-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64192-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCVbTc9O/mM7nfFZxNnssatdaRaJVzTkipe5Ih8Zm93IbvLajGKO/NLTdRstJcqjP9ZO0lP2hlQDYbsnvP9yNMC5TiRbgw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o15-20020a05620a110f00b00786f0d7488fsi3604988qkk.87.2024.02.13.11.49.27 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 11:49:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64192-ouuuleilei=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=@linutronix.de header.s=2020 header.b="dJOydb6/"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=iJMFGqFs; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-64192-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64192-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 1F6D21C22D27 for <ouuuleilei@gmail.com>; Tue, 13 Feb 2024 19:49:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7BFB60B87; Tue, 13 Feb 2024 19:49:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dJOydb6/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="iJMFGqFs" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 B1F146088D; Tue, 13 Feb 2024 19:49:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707853748; cv=none; b=nahslyB9SSaHMBXvNjFoeqyHBxW5QLUg57NO6Mv0REIQbSIMNXyvkQ5hWVJGT/LqI6zPrCdaRfNCzqztACOPXqNmHzMQfs8pyHJkuxADSJ/lsq1Espq4IG78OyFYS3QmE8V7rDVLnNrQm+/4pBRKTKjG5ZSjTgyL3RPgVZUx67U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707853748; c=relaxed/simple; bh=pjKA3Ua1RKW2HGaRujVR/MwN9dtP60k5B2a26aztdr0=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=WZB3IpByvwcTDQAvuWOA2cJ39wDcIZawuHqQEz7INi1PkQAX/KFWY12IQcY4oy5qaS0Sxe54ThCedZvx7Eh4u54tYdWBFC2Qh1Esrj2RCiMzbZcaGLMyIcO+n2zseU2JqeFp0IQbqSUTUVCH7c/2BDYwp1r9VS2Xr5QKnLNlZ+Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=dJOydb6/; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=iJMFGqFs; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 13 Feb 2024 19:49:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707853744; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eHdL9fwqzOFVunQ7aj6eAS3JJUQBeZz3a16vfCQiKHg=; b=dJOydb6/I8/1s9cl/MJu9k8XnaqWmXcrkwuWc3YU7l7m+lvFhdhkEq856HyjvYsVQV/j57 k2tSZUFaBkmWNXaLceQV59m+NhGMM3DZ/ZECGX6woFXFLvavAZ4oShrcN2kWgfMZkO4Bof 5aAK3cpTXIrBbje2eTxjMkqQhpJ/k4m6s9QqqfIebHXdP48g6f5vPg2kFDgBAS75uGMOQy 7yIRrHDlreIL53o01ZkqP2HYLWu8tXdSeS0zXe3c4ezJSWgeQhqE5Dyjzb3VqUdy+T33Mk 7KnjNhOFaZQvxI5rnJ6g9gaIaDIZIAA+SN5bggOuzrLjgwKHibNMk05gYnv3JQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707853744; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eHdL9fwqzOFVunQ7aj6eAS3JJUQBeZz3a16vfCQiKHg=; b=iJMFGqFs1Q7mvG/X4gizrWDePP9YZQ/w69vEGUpvCEJuDLVw/FVQ1yIjaHgtakSp9ytf4Z 2DuEoW3dbnrIF7Aw== From: "tip-bot2 for Costa Shulyupin" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] hrtimer: Select housekeeping CPU during migration Cc: Waiman Long <longman@redhat.com>, Costa Shulyupin <costa.shul@redhat.com>, Thomas Gleixner <tglx@linutronix.de>, Frederic Weisbecker <frederic@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240213164650.2935909-3-costa.shul@redhat.com> References: <20240213164650.2935909-3-costa.shul@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Message-ID: <170785374329.398.3918391631110866746.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790814472222614819 X-GMAIL-MSGID: 1790814472222614819 |
Series |
[tip:,timers/core] hrtimer: Select housekeeping CPU during migration
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Feb. 13, 2024, 7:49 p.m. UTC
The following commit has been merged into the timers/core branch of tip: Commit-ID: 86342554e102b0d18d50abec43d40f4fc92f1993 Gitweb: https://git.kernel.org/tip/86342554e102b0d18d50abec43d40f4fc92f1993 Author: Costa Shulyupin <costa.shul@redhat.com> AuthorDate: Tue, 13 Feb 2024 18:46:51 +02:00 Committer: Thomas Gleixner <tglx@linutronix.de> CommitterDate: Tue, 13 Feb 2024 20:44:14 +01:00 hrtimer: Select housekeeping CPU during migration During CPU-down hotplug, hrtimers may migrate to isolated CPUs, compromising CPU isolation. Address this issue by masking valid CPUs for hrtimers using housekeeping_cpumask(HK_TYPE_TIMER). Suggested-by: Waiman Long <longman@redhat.com> Signed-off-by: Costa Shulyupin <costa.shul@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Waiman Long <longman@redhat.com> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lore.kernel.org/r/20240213164650.2935909-3-costa.shul@redhat.com --- kernel/time/hrtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 7607939..438208a 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -2221,8 +2221,8 @@ static void migrate_hrtimer_list(struct hrtimer_clock_base *old_base, int hrtimers_cpu_dying(unsigned int dying_cpu) { + int i, ncpu = cpumask_any_and(cpu_active_mask, housekeeping(HK_TYPE_TIMER)); struct hrtimer_cpu_base *old_base, *new_base; - int i, ncpu = cpumask_first(cpu_active_mask); tick_cancel_sched_timer(dying_cpu);