[{"id":3674982,"web_url":"http://patchwork.ozlabs.org/comment/3674982/","msgid":"<ada9d-r7NjOQew7x@pavilion.home>","list_archive_url":null,"date":"2026-04-08T20:41:27","subject":"Re: [patch V2 02/11] hrtimer: Use hrtimer_start_expires_user() for\n hrtimer sleepers","submitter":{"id":79411,"url":"http://patchwork.ozlabs.org/api/people/79411/","name":"Frederic Weisbecker","email":"frederic@kernel.org"},"content":"Le Wed, Apr 08, 2026 at 01:53:52PM +0200, Thomas Gleixner a écrit :\n> Most hrtimer sleepers are user controlled and user space can hand arbitrary\n> expiry values in as long as they are valid timespecs. If the expiry value\n> is in the past then this requires a full loop through reprogramming the\n> clock event device, taking the hrtimer interrupt, waking the task and\n> reprogram again.\n> \n> Use hrtimer_start_expires_user() which avoids the full round trip by\n> checking the timer for expiry on enqueue.\n> \n> Signed-off-by: Thomas Gleixner <tglx@kernel.org>\n> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>\n> Cc: Anna-Maria Behnsen <anna-maria@linutronix.de>\n> Cc: Frederic Weisbecker <frederic@kernel.org>\n\nReviewed-by: Frederic Weisbecker <frederic@kernel.org>","headers":{"Return-Path":"\n <netfilter-devel+bounces-11747-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","netfilter-devel@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=Glmtp9Y7;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-11747-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"Glmtp9Y7\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"],"Received":["from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4frZjk5M5Dz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 06:41:46 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 3837430547E1\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  8 Apr 2026 20:41:34 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A8F193DB641;\n\tWed,  8 Apr 2026 20:41:31 +0000 (UTC)","from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 336CB4317D;\n\tWed,  8 Apr 2026 20:41:31 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id 61695C19421;\n\tWed,  8 Apr 2026 20:41:30 +0000 (UTC)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775680891; cv=none;\n b=d4HMPT2jhg9gUY/BuE6aQ10+NT/FgoiI55ywBJJeQjkjPaRXpsBrqhZNmGzmoeYVhWFV9/+osWVBG+Fc6ZQlrLVzy/AQVScr3A6j3+m2vsj4qFbvKDHiP/aD0pnKPKH2WP5/Ub5K7x6ELsdleNjbZWzK1IHoIs0LePGRGNBdI0k=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775680891; c=relaxed/simple;\n\tbh=xK+VNr9zO0H9I+Nt2uO8ZbcQkC6hmLaT6BOwXuSM6bU=;\n\th=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:\n\t Content-Type:Content-Disposition:In-Reply-To;\n b=eiB5IUzQ8Wg7HZoG5U7dqYrEo3GWEX+HjWzA1JwC/D/UdSH+KSH67c4SXhFphy9uS7pZcyAAlJwtDEvQZ3QqbQDngqwSz5o8UluQyQU5OmVOsSPdF7oLN+gHFu4VHdmbkD7Bss3eH8Pj5YW5W9Yc5LZYKr9mevNB9AVNB34eh/k=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=Glmtp9Y7; arc=none smtp.client-ip=10.30.226.201","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1775680890;\n\tbh=xK+VNr9zO0H9I+Nt2uO8ZbcQkC6hmLaT6BOwXuSM6bU=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=Glmtp9Y76L/kzqAltIpG33F4YjfJrkGtQiWCoQUagKUWsAyZzPhts9MxrF7MW81Iw\n\t V58G0RWMRcuIKSWji1sqfbD2y7mQYnbdBwg0BzuJBjNPS1LaHRN7xgoby4QUMsviRR\n\t N6ooMZJkE21NH66Z068VqNifi+Qs+G3ERS9bgvy4083wnHYNKvrU2WQYPOOZ15L7Tn\n\t gGHvoviUKjg6zgUVF4o+uns+psSfO06sR2N45/IhvKnN/celpga+RjnxUy9q57FF3+\n\t ROXfHe3YdDYbJQl/8FhJgVycgXVRas1sGjZtI85a2yCIBjDt7EcRRIsEa/tub8f6hw\n\t iOn8FyJEp0oLA==","Date":"Wed, 8 Apr 2026 22:41:27 +0200","From":"Frederic Weisbecker <frederic@kernel.org>","To":"Thomas Gleixner <tglx@kernel.org>","Cc":"LKML <linux-kernel@vger.kernel.org>,\n\t\"Peter Zijlstra (Intel)\" <peterz@infradead.org>,\n\tAnna-Maria Behnsen <anna-maria@linutronix.de>,\n\tCalvin Owens <calvin@wbinvd.org>, John Stultz <jstultz@google.com>,\n\tStephen Boyd <sboyd@kernel.org>,\n\tAlexander Viro <viro@zeniv.linux.org.uk>,\n\tChristian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>,\n\tlinux-fsdevel@vger.kernel.org, Sebastian Reichel <sre@kernel.org>,\n\tlinux-pm@vger.kernel.org, Pablo Neira Ayuso <pablo@netfilter.org>,\n\tFlorian Westphal <fw@strlen.de>, Phil Sutter <phil@nwl.cc>,\n\tnetfilter-devel@vger.kernel.org, coreteam@netfilter.org","Subject":"Re: [patch V2 02/11] hrtimer: Use hrtimer_start_expires_user() for\n hrtimer sleepers","Message-ID":"<ada9d-r7NjOQew7x@pavilion.home>","References":"<20260408102356.783133335@kernel.org>\n <20260408114952.062400833@kernel.org>","Precedence":"bulk","X-Mailing-List":"netfilter-devel@vger.kernel.org","List-Id":"<netfilter-devel.vger.kernel.org>","List-Subscribe":"<mailto:netfilter-devel+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:netfilter-devel+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=iso-8859-1","Content-Disposition":"inline","Content-Transfer-Encoding":"8bit","In-Reply-To":"<20260408114952.062400833@kernel.org>"}}]