From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 236F02BEC43; Thu, 9 Apr 2026 15:49:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775749790; cv=none; b=iiqzcIifHqNvoZMvt4odMHnGodL/r9OFN+100y35JkvjrLWtdxf997gZhlzqjfAr5NbUGa9DMOjYRflqmePdFa0NIAZdsclCFvTlFGyHfjrY9GZnQTDtjoAKUMj7+5stdnhnvu3kKjk9sWzDr/cQB2EAoImAVnzdTriH7A3/ocQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775749790; c=relaxed/simple; bh=KWGmALGio659Oy80+jPw2SWhMoDeQC8FENlJ3f19gpM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UQlSHHQUfdrCgbppwZdLflnrkkuvSZdniDGsHrNrH+bCIuURWGIcMkllANNG8CarIWSiK72OQgCzFLKftJDSK4pDvrh9MCcZsTA0iVQCyhqXB5tvIxcYwRrM7qnJhKTtVzz7AsEkwyGi6Pb2KCX1cGWRcA9xim3g2q24toSi5OE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JTCY6qbe; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JTCY6qbe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85789C4CEF7; Thu, 9 Apr 2026 15:49:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775749790; bh=KWGmALGio659Oy80+jPw2SWhMoDeQC8FENlJ3f19gpM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JTCY6qbehuSFhO5Bd+Pv9NBW/fVuFCzBu4zdTRCjcZRx6oCzakjhDUk/MNy7F0Gqq NnW3oCWND1ybX9FX7i+RK3FHLQUb9QYkfpXVFLsgiWDhMYfVrU1G057XEMzDkoS7jZ GN/pBDjwO9PzzqOMw5cv3pUjcstmZQHNudPOUrCQRQJlV/7aefNrizlw7vUeBoxXdF FofRfYlg3IpvTlAehrjiTNIndPkRoUviEC7DpF1FH//2Fl4aR2IaK42OOCPlijIRUg dqwUTs7XZDCoFAXE0Oje+8sOilghlt+3264yhCd+ukL9HkWm6N1oInME++pSd8Zt9p R2I9JaOSC/Iag== Date: Thu, 9 Apr 2026 17:49:46 +0200 From: Frederic Weisbecker To: Thomas Gleixner Cc: LKML , "Peter Zijlstra (Intel)" , Anna-Maria Behnsen , Calvin Owens , John Stultz , Stephen Boyd , Alexander Viro , Christian Brauner , Jan Kara , linux-fsdevel@vger.kernel.org, Sebastian Reichel , linux-pm@vger.kernel.org, Pablo Neira Ayuso , Florian Westphal , Phil Sutter , netfilter-devel@vger.kernel.org, coreteam@netfilter.org Subject: Re: [patch V2 04/11] posix-timers: Handle the timer_[re]arm() return value Message-ID: References: <20260408102356.783133335@kernel.org> <20260408114952.198028466@kernel.org> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260408114952.198028466@kernel.org> Le Wed, Apr 08, 2026 at 01:54:01PM +0200, Thomas Gleixner a écrit : > The [re]arm callbacks will return true when the timer was queued and false > if it was already expired at enqueue time. > > In both cases the call sites can trivially queue the signal right there, > when the timer was already expired. That avoids a full round trip through > the hrtimer interrupt. > > Signed-off-by: Thomas Gleixner > Acked-by: Peter Zijlstra (Intel) > Cc: Anna-Maria Behnsen > Cc: Frederic Weisbecker Reviewed-by: Frederic Weisbecker -- Frederic Weisbecker SUSE Labs