From nobody Tue Sep 29 04:44:47 2026 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 CACB84334D9; Wed, 12 Aug 2026 11:18:42 +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=1786533524; cv=none; b=a/kRS9knHCcYz1UHekrGODb2gQUEmu7TxwI8IramiC4WxzUi4qSmw1dewpbvGMzTPN4PRsvIA8drIWDw9UKce0Qdlt/waMf0LM6QJHEoTArpUYPmCbkFn0pMqT/hH0KT0gO42VdRJkudO04sGkcTbWes6GFqoI75LLoNXMp6RJY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786533524; c=relaxed/simple; bh=RafJe2ym/2BVRjTabLf8ydN/T4GehekNFQ8erv+OS8M=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Kiv1Ebh7290HPM2rA6cungT5C0WOncsBhW6sx6ZQeok/VZh48JmSagK6S4oP2bAGmSnxrSZzibPNodZSr3Hw0L1ja45CSX96+xgbhzNgRj94tU1MhNwcOeVgieRi7LFjt78oCSmGDsxKXVNK7IfqVNv0dN7jA0/CzGKVSzJ3lKc= 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=SyTYx8Zg; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=/9cDjlhJ; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SyTYx8Zg"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="/9cDjlhJ" Date: Wed, 12 Aug 2026 11:18:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786533520; 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=A2lRFIC/7RTgqOhKJGcTH0wRJ6mEtQaXaEunQ72nn0Y=; b=SyTYx8ZgT+uIYAtNCei0u301xSY6t6OAv1f9awkrA78sKguMsal8tJUjwLLvxhkAgSr2Un zhCG+97jESuO7MHOZ4Ubah90aj5s3UaVCl8ADWN5BexiKULqk3uSbQoc4WWK8pvIycWfJy 4poxRw2wvrK7whg5TfxBEpWM23K3ukb6yeHHypq+iFE89ZW1ea6kvWy2zIA/HlNvKMB9l3 OUS+BRmQWtfu7e9+PAoOA8/1kGEZiZJymgs/HUXtdIT5HvILQCUTRy40CYxWvc/3p6CwmR WPYJWAfhhAI1SW+zqc48546RepqGKFWUb9g6XPOHdwnjjYw9pD8BDBRS6edfeA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786533520; 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=A2lRFIC/7RTgqOhKJGcTH0wRJ6mEtQaXaEunQ72nn0Y=; b=/9cDjlhJ6qZZKHdfT2pMdXKuaW/TI/OPaHgq0NYRi1LYS59xlrcAlP4JX74fbd+Q/i7Edw 7dxA/wguWvFHS5Dg== From: "tip-bot2 for Boqun Feng" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] rust: helper: Add spin_{un,}lock_irq_{enable,disable}() helpers Cc: Boqun Feng , "Peter Zijlstra (Intel)" , Andreas Hindborg , Gary Guo , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260807070218.27144-16-boqun@kernel.org> References: <20260807070218.27144-16-boqun@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178653351886.442315.11825297499930275806.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the locking/core branch of tip: Commit-ID: 78c998b04ef53492f3502051349e55615681e00f Gitweb: https://git.kernel.org/tip/78c998b04ef53492f3502051349e55615= 681e00f Author: Boqun Feng AuthorDate: Fri, 07 Aug 2026 00:02:12 -07:00 Committer: Peter Zijlstra CommitterDate: Mon, 10 Aug 2026 12:53:10 +02:00 rust: helper: Add spin_{un,}lock_irq_{enable,disable}() helpers spin_lock_irq_disable() and spin_unlock_irq_enable() are inline functions, to use them in Rust helpers are introduced. This is for interrupt disabling lock abstraction in Rust. Signed-off-by: Boqun Feng Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Andreas Hindborg Reviewed-by: Gary Guo Link: https://patch.msgid.link/20260807070218.27144-16-boqun@kernel.org --- rust/helpers/spinlock.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/rust/helpers/spinlock.c b/rust/helpers/spinlock.c index 4d13062..d53400c 100644 --- a/rust/helpers/spinlock.c +++ b/rust/helpers/spinlock.c @@ -36,3 +36,18 @@ __rust_helper void rust_helper_spin_assert_is_held(spinl= ock_t *lock) { lockdep_assert_held(lock); } + +__rust_helper void rust_helper_spin_lock_irq_disable(spinlock_t *lock) +{ + spin_lock_irq_disable(lock); +} + +__rust_helper void rust_helper_spin_unlock_irq_enable(spinlock_t *lock) +{ + spin_unlock_irq_enable(lock); +} + +__rust_helper int rust_helper_spin_trylock_irq_disable(spinlock_t *lock) +{ + return spin_trylock_irq_disable(lock); +}