Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1512820lqp; Mon, 15 Apr 2024 08:31:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZNwv8nUlFxtWJqdRXEGhlwNFXmB70OQXTefKPigIlI9ajApZU23MagTFjT1Duct6ty/as/nwU8NGZ9l6P8kcoyhm5yz7/978+SDa6KA== X-Google-Smtp-Source: AGHT+IHkyveVE4LWMi1jyNm5YhkLhdHmZvixbhCrOwc3kO/9hpPj7keMa6Qq+1UBgThnGjelglGl X-Received: by 2002:a05:6a20:2d24:b0:1a9:c1b6:f739 with SMTP id g36-20020a056a202d2400b001a9c1b6f739mr11309131pzl.19.1713195071076; Mon, 15 Apr 2024 08:31:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713195071; cv=pass; d=google.com; s=arc-20160816; b=TtBlW7zVSKLC1nbqM9JmsC5BvHDf5wnj/kH1Vf1DZCSTc0KpjWqeZwx5FdC4ESG8o5 YKzbiVuZHerJCffm4xX9RDuG8A/SwDFLARxkcG1CnKWfeIw+vaOMUB3/tnQxdq2hRMNG nGn65ZifQzZRb0F98udqg0xGOLo+ZFd50TsdCs3Ft1CtkZvaUWrIuREAxSsyE9MQjHeF Ub4rHuGdkidqPYl+FaXZlLKdFJk0SVDcltG2S+oRrMFXNTEijW5W0JoYkR1HBgDvE5/B k4c7UXP+OrS4FVoxv587tR0BJ2cs0PBK3Tq18W7Ox74XGm+MZQNgj0VOTbVdDNkDvq7Y br4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=8F9ucDIw0mXDD0ZlZXTS1GEvdOSfw7kx0csGX6bWCNU=; fh=MxOqrKe8Fax3kxE77rA0inxVaQwZCyEyqDk4Qwcbk14=; b=S08cj/2+gR6FSRUOI4SEGxYzpTIimpqvvCnCvr+b2ubLT+tW1HpwKXjsH+5KeF473x GROZDpllpalCn4q5ac+Dy7v9mh1VSlmPR6awUFY0yU7skTAk3i812yOHjd3k6uahob6C jCV1jxssMdWBoIhPpKhakrhCgx7lHAW/1zIt7kSBk/L3NDHBV2hTt+5VDC5on0QSXt8J 9TVbyOzj5/TixzogIaaoOKoc0jfP4mGHUHkpGS3dGNxajS1SVhGOYQURW2U91d4vrh2p kbw4aPrQMaX6DTzziXgEDH+IraeW3bfSKrn/rc4h0rkcVwbzM60P9OeMI5K9bQwrEMZM e6eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EmqXj4nA; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-145459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145459-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m63-20020a633f42000000b005dc87994572si8131125pga.346.2024.04.15.08.31.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 08:31:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EmqXj4nA; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-145459-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145459-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 97ACFB21B1D for ; Mon, 15 Apr 2024 15:28:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7890978C73; Mon, 15 Apr 2024 15:28:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="EmqXj4nA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="FQ/mEvSW" 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 619B160EF9 for ; Mon, 15 Apr 2024 15:28:17 +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=1713194898; cv=none; b=hvKw4FSKHLzwxbqpjEfbBDO437c2X7Uvr8xFDmpj9JUiAbHdacA5YuXMlS4NMfokjIytM6T9ToB9ABuF1uLaQo6qfQrzz8DLtpgEVagFD2OIvOGGy4cy0MpjDQgBIT/uJoHdAEqusX5pJ4JJ6jGjSYTlyDf2lIm37Tz0na9Tpds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713194898; c=relaxed/simple; bh=8F9ucDIw0mXDD0ZlZXTS1GEvdOSfw7kx0csGX6bWCNU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=DcwCdC0VgDVzkxhfgSiSXQM8wEFei9RLrAcIGB6VNXToOyrlJ/V4DiyPhvrxD83/6UTWVmJwAUNsZQVLhEU3thJ1ffLCP+n5OxDsXPPgFkVivf6LugyYFbPNJHF05OCFTdCLmUWKW99On6p60ttqPE24xmKA4KcIemi3bfjcIvQ= 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=EmqXj4nA; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=FQ/mEvSW; 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 From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1713194895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8F9ucDIw0mXDD0ZlZXTS1GEvdOSfw7kx0csGX6bWCNU=; b=EmqXj4nAPJDhXsEarHCiyRSkFRZXjKB27EtzZqqxoc6DJ6X5+WMtVcGTezw+41D3ZsOh3R SZFit7eJtkR69J/mXmJFFuWHPSkXqWSDiDwJz4N+80runJlIrucQXdM4hkYNakaRN8Lrg7 hqxsEkJqZmMOq23qcq90T21a0sP/hTe2O3PO3QU0aTJelhCeinGqgZuIiLUAzNTVAmQL5v b374Q7n8XBZ9NAlb3Y+o/NX7EzbXDwnJhToY8FWbgrrlx+UQL6MUzI8V7TRekjgAjZLkSE g47nyxyrN4J5I0TzvOqEjK4rMDGImAoQ15hyFveSmJTwOPbosWtHnX4i2vDqmg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1713194895; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8F9ucDIw0mXDD0ZlZXTS1GEvdOSfw7kx0csGX6bWCNU=; b=FQ/mEvSWEVJe22UIXtF8pX4dEjuI1FskVSsBFplYfOEjPYarAO8d3N/KNcz2MDsykqNHkQ jikbsKZhfF1hjCBA== To: Thomas Gleixner , LKML Cc: Frederic Weisbecker , John Stultz , Peter Zijlstra , Ingo Molnar , Stephen Boyd , Eric Biederman , Oleg Nesterov Subject: Re: [patch V2 16/50] posix-cpu-timers: Simplify posix_cpu_timer_set() In-Reply-To: <20240410165551.943625183@linutronix.de> References: <20240410164558.316665885@linutronix.de> <20240410165551.943625183@linutronix.de> Date: Mon, 15 Apr 2024 17:28:14 +0200 Message-ID: <877cgyve5t.fsf@somnus> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Thomas Gleixner writes: > Avoid the late sighand lock/unlock dance when a timer is not armed to > enforce reevaluation of the timer base so that the process wide CPU timer > sampling can be disabled. > > Do it right at the point where the arming decision is made which already > has sighand locked. > Reviewed-by: Anna-Maria Behnsen