From nobody Fri Apr 3 11:10:52 2026 Received: from mail-ej1-f74.google.com (mail-ej1-f74.google.com [209.85.218.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1F5E280A56 for ; Fri, 20 Feb 2026 15:12:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771600344; cv=none; b=AzAnSrQ2OOxvkPgzRFiE4Eww/DSOCdijBck0c3CRA/IoiM6itUsHj412ZSKamNgm693bvNBgFLweXpRCFPwJXx10ovvZQMlcNQZ4rz64rYnOSUcvGDCTX1TQruntGWMK5jMqi8nxB0EeXPMX0wY9CHkYPM7jJKt399V2LGwHYYc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771600344; c=relaxed/simple; bh=DzlOWW6aB7lpJ/SzjzXXIUpoY1JoPREbSjUZUop8aYU=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=fmJ4+Mieb1j+kNr8wF0v1eSXcmMTr7FW8F1Zb+1J2Sw45eYEjz0QeM5Y3ok0XWofxPHCUrl32zjILnGqEU4yHVfWNJiTYyIebszGJhsd2Ky4ods73CU3U9Neq1HeMINC6k+4G0TRfMhKEq+OfeazIcNEHTGwFnCkSIZ5lQOlTz4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--lrizzo.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=gViqR9hf; arc=none smtp.client-ip=209.85.218.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--lrizzo.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="gViqR9hf" Received: by mail-ej1-f74.google.com with SMTP id a640c23a62f3a-b8f9734e619so162765266b.3 for ; Fri, 20 Feb 2026 07:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1771600340; x=1772205140; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=BglHJbHO05XrjVy7Kw1qhRY3apE6BRfv6ldh6GG9pCo=; b=gViqR9hfGaz/0iH8l5leUkk+vkKI2njGZMY+dh0xdduAze8wT+elzkZWl44uK11ZT7 YyrUxaexiG/mOmsHJDfhRSniUNE8kKMSypnd6UJkmbkeZ7i16waH8VP1Wxo2gyYK1esc B+XxqENtTQ/ByqspzNg1Bvvw2CXEM00Rdjkexa6nKhsKhAP9PfX8kwZljELJUnPZAqZY SyfoPXMLrVUXppzpuTUq25Lhqk/qagFNM8FBFq3sI/g4C1EWd476wcydm5DA7FaRB5t8 +TqW10Ra6J5Ma6Ia/bnuQqLDyEYnyaQrkfXKC7WvXUBW/s4YYq+gp6h3l7VjQY7sShbE ZM/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771600340; x=1772205140; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=BglHJbHO05XrjVy7Kw1qhRY3apE6BRfv6ldh6GG9pCo=; b=okICT3os7gcxdKz3nc+wqFoo6Uz2X+oXluM00thFmv3Z7kRkeBo3S6n2ewDhjH8+05 hcAW+jbadRNlo076dtbb+98wvY/NvzV4p6TKh1hqXZ7fKOQ17Zq9XeKqL63NujfClccn 6RnBDd0K8LUhZG+3Uc7XePSdzLClcil5NaxiE2+lLk/cX20PnblLDTqTmJun6bmYRkMQ wyPL4hBA8NwpL2RVq+hWBalmG17gEezfknVky36lwP48rC+xUqR0okXmZokHVogc+LtR ak4u4dn30/uSa2sWm2MtG27CI7klAFwsHuskHmDenNsXQ+N/UFWgJ0nn5GZAyk5pZX+y PCXw== X-Gm-Message-State: AOJu0Yy3Q/4trIX3Fgkk/ozSMmL9qogxih07QThNBVpMa+X4pMWFcNZf yameh9cLWCttJu7sU1tu0uIyg0+zNRcykfwqCRb5jHL8j3u2hHJhOI51OpuUciGm5+wBgO8U/dk TwItmwg== X-Received: from ejcqy30.prod.google.com ([2002:a17:907:689e:b0:b8d:e68c:f9b4]) (user=lrizzo job=prod-delivery.src-stubby-dispatcher) by 2002:a17:906:7311:b0:b89:9631:2425 with SMTP id a640c23a62f3a-b903db149cfmr547363066b.19.1771600339889; Fri, 20 Feb 2026 07:12:19 -0800 (PST) Date: Fri, 20 Feb 2026 15:12:16 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.53.0.345.g96ddfc5eaa-goog Message-ID: <20260220151216.873182-1-lrizzo@google.com> Subject: [PATCH] x86/apic: remove vector_lock from apic_retrigger_irq() From: Luigi Rizzo To: Thomas Gleixner , Marc Zyngier , Luigi Rizzo Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Luigi Rizzo Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" apic_retrigger_irq() grabs vector_lock, but this is not needed because any caller of this function holds the irqdesc lock, and that suffices to protect apicd->vector. Remove the unnecessary lock. Thomas found this is a leftover from v2.6 when it was truly needed. Signed-off-by: Luigi Rizzo --- arch/x86/kernel/apic/vector.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/apic/vector.c b/arch/x86/kernel/apic/vector.c index bddc544653999..fd0f133b379fd 100644 --- a/arch/x86/kernel/apic/vector.c +++ b/arch/x86/kernel/apic/vector.c @@ -1002,11 +1002,8 @@ static void apic_force_complete_move(struct irq_data= *irqd) static int apic_retrigger_irq(struct irq_data *irqd) { struct apic_chip_data *apicd =3D apic_chip_data(irqd); - unsigned long flags; =20 - raw_spin_lock_irqsave(&vector_lock, flags); __apic_send_IPI(apicd->cpu, apicd->vector); - raw_spin_unlock_irqrestore(&vector_lock, flags); =20 return 1; } --=20 2.53.0.345.g96ddfc5eaa-goog