Message ID | 168597770991.404.1945996479338799259.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2753702vqr; Mon, 5 Jun 2023 08:10:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Nl7EYsa0EN70NaxchZCInIIyuZXysQeY8Laq1u7uo1cZcUdqxUbI+pSIXbOW2gceGTZ9/ X-Received: by 2002:a05:6a20:8f0b:b0:10d:bc30:b9ea with SMTP id b11-20020a056a208f0b00b0010dbc30b9eamr3851951pzk.39.1685977839402; Mon, 05 Jun 2023 08:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685977839; cv=none; d=google.com; s=arc-20160816; b=X35i7VGzpDVxR/HUJO6fxhhJ0a5j26cRDvagXfQGrr2HI41qqwcyK8dwT3btUn5A8h qdEpUbcNSGn75kJl7tJwaDxpPDLbhqJmb0kogU16hPd1jaowRP49KQbM/REiCK3JQ8It eJQACdFzljHOhMg8bDFzSXrjSyBwflrC1lXD9jqw2OhTyz9pMU10RDugT0OvG5U+imek 1wK9gCIDmUn14pAtdYcHUFkyF8GF1hqhLSB9aJaXAMgYQQ91267Q0mlLgYGLW09wcWxx 7pyoDwy+qf0FouxGi7wB0+Ffc976ejXUNnsydcZykbzG+fSTuzHKBqID+dpcqQzVJD5k nJfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=1e6Yds5W7rP7fF0+wFeNJOpuoQxhcru5LRYemFpOo6U=; b=MQ+R9ox4vl9CQL4L/xkVMM500CxK5OvfmBgB6AsQypYLmoB5QKh7dDRbB3hxx+tKRR JBIya3jHiAGKAZU8PUmEExaqqBUcs9fIz02K6KMTNVwLFasaN2gA8NpbpLN3CwLSkCcj sC4lmf6ga17HLrPimaOHD57KXg0cuKFGSL02ghMamI2WMoTr9z5NBXZppV0OYv4Lb+DP GOe21fSsQK41Af8CqhegdIvBCKFc1zzj95EbGVK8ESBfwbf73eyEjD46P0gHRwCTy7Mt 2nHSPAwWYdEyL1Anis03hYBkv2xMjfT0x3wJhGIf79arKOt6xahKeZyqeiv1zEPbJWOh RVrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0gliyGVp; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 64-20020a630043000000b00540ca6239a0si5440945pga.538.2023.06.05.08.10.24; Mon, 05 Jun 2023 08:10:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0gliyGVp; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232006AbjFEPJO (ORCPT <rfc822;pavtiger@gmail.com> + 99 others); Mon, 5 Jun 2023 11:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234160AbjFEPIc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Jun 2023 11:08:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E7B5F2; Mon, 5 Jun 2023 08:08:31 -0700 (PDT) Date: Mon, 05 Jun 2023 15:08:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685977710; 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=1e6Yds5W7rP7fF0+wFeNJOpuoQxhcru5LRYemFpOo6U=; b=0gliyGVpuO8Df+2CTjcRQhQMFXG8wnUdDsTKC7O2HedbcXYSIQbnjVz/Ula5cVb301ynEl cgXBCeqCpZ0vzPlGYucyrG19/weJc1TlOeHfxigGl57kkmHD/HP9HMnEmBeZzEzU7VuJJX TtdEEBK8kDn2yvPrfu04NrzDegtNYTs5a8KYDp4lZ9lxUGV9EKd3mk8n7ptXSCnqfC5+O7 2hK56ol9xtnRauuHHtMCVWlZjnh8gjUMGzi39pi0nBid2LU1firdxuH2684FTqnF0cdk6d aNDWhRLFsVfbm6POzB+AgGvvdsgkMvnGbeo/Vl06gJU8B8wK3+ejaPPSMhKT4A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685977710; 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=1e6Yds5W7rP7fF0+wFeNJOpuoQxhcru5LRYemFpOo6U=; b=n+C/23niQpWWx9cSIt48Mfu/f5e6AH6q+/JWv/Zt2jo1i6op3oVq5ygP9qrcyB1ABSKQE3 90zaV2UvewzfkhAw== From: "tip-bot2 for Thomas Gleixner" <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] posix-timers: Remove pointless irqsafe from hash_lock Cc: Thomas Gleixner <tglx@linutronix.de>, Frederic Weisbecker <frederic@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230425183313.249063953@linutronix.de> References: <20230425183313.249063953@linutronix.de> MIME-Version: 1.0 Message-ID: <168597770991.404.1945996479338799259.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764176018549232911?= X-GMAIL-MSGID: =?utf-8?q?1767875898712975618?= |
Series |
[tip:,timers/core] posix-timers: Remove pointless irqsafe from hash_lock
|
|
Commit Message
tip-bot2 for Thomas Gleixner
June 5, 2023, 3:08 p.m. UTC
The following commit has been merged into the timers/core branch of tip: Commit-ID: 032c960ac9f3d64487423e0e01a0fb7327509595 Gitweb: https://git.kernel.org/tip/032c960ac9f3d64487423e0e01a0fb7327509595 Author: Thomas Gleixner <tglx@linutronix.de> AuthorDate: Tue, 25 Apr 2023 20:49:08 +02:00 Committer: Thomas Gleixner <tglx@linutronix.de> CommitterDate: Mon, 05 Jun 2023 17:03:37 +02:00 posix-timers: Remove pointless irqsafe from hash_lock All usage of hash_lock is in thread context. No point in using spin_lock_irqsave()/irqrestore() for a single usage site. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Link: https://lore.kernel.org/r/20230425183313.249063953@linutronix.de --- kernel/time/posix-timers.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index e8d877f..d8d4cdf 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -471,10 +471,9 @@ static void k_itimer_rcu_free(struct rcu_head *head) static void release_posix_timer(struct k_itimer *tmr, int it_id_set) { if (it_id_set) { - unsigned long flags; - spin_lock_irqsave(&hash_lock, flags); + spin_lock(&hash_lock, flags); hlist_del_rcu(&tmr->t_hash); - spin_unlock_irqrestore(&hash_lock, flags); + spin_unlock(&hash_lock, flags); } put_pid(tmr->it_pid); sigqueue_free(tmr->sigq);