From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ilvokhin.com (mail.ilvokhin.com [178.62.254.231]) (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 AC2833932C5 for ; Thu, 26 Mar 2026 19:14:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.62.254.231 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774552443; cv=none; b=HCj6nTde1jOKZycPGbpXEyq1lrbdQyOzRzev6eyR0tZ6+jtV4+86P4V0otB4DQTEJaLujwi30fgxUvEydLWAA4qVPHoXH+IVS0S5knXaeN5DYWGzTfBiRG2PHLpqDi0CUCO4PYpc6xccsLieljiJb+8GAWzHyeWnLsf6193JqAI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774552443; c=relaxed/simple; bh=Ljg1mR71jNzwQu5E/W0hfxdHurmU24UjAxJNmkgEmMM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gZNWlwMSi6b7II0EFwmrdAakXMLA2TY6mOUxP/JHleCg3PlwX7UazJJdWuu+eY2OmX4g66lL/GYj1xSh+IuK8yfckyl3Tog9aEdbkqRzuiO11yOybag7kMwVXOgBXnXpjy+pxtJ5u4PKeoJh6GV/Alu7VhffqrUD6rqdqAOuZvw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ilvokhin.com; spf=pass smtp.mailfrom=ilvokhin.com; dkim=pass (1024-bit key) header.d=ilvokhin.com header.i=@ilvokhin.com header.b=0tWFYprH; arc=none smtp.client-ip=178.62.254.231 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ilvokhin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ilvokhin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ilvokhin.com header.i=@ilvokhin.com header.b="0tWFYprH" Received: from shell.ilvokhin.com (shell.ilvokhin.com [138.68.190.75]) (Authenticated sender: d@ilvokhin.com) by mail.ilvokhin.com (Postfix) with ESMTPSA id E9FC1BDEA2; Thu, 26 Mar 2026 19:13:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilvokhin.com; s=mail; t=1774552440; bh=lEUpiiOb5HekhgGbCPkhb1zR5RMRTg/kzC4DMQxNPE4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=0tWFYprHGSS/QgwV0V7YU6UMHSTK9JxG9g2u4gkpQcF9rXiO5J04eeFZRPr8bJ5GR t2S5BozmGB5P8ID3iYWedz2JUbbr9v80qZpGSbAj1Lm6R0Lfxaz1sel3BroATUSzgf i3A3AAzFEqax6GxZvyP9Uz9Zut62enBrn+FFc4cg= Date: Thu, 26 Mar 2026 19:13:58 +0000 From: Dmitry Ilvokhin To: Thomas Gleixner Cc: LKML , x86@kernel.org, Neil Horman , Radu Rendec Subject: Re: [patch v2 09/14] genirq: Expose irq_find_desc_at_or_after() in core code Message-ID: References: <20260320131108.344376329@kernel.org> <20260320132102.638201987@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260320132102.638201987@kernel.org> On Fri, Mar 20, 2026 at 02:22:09PM +0100, Thomas Gleixner wrote: > --- in preparation for a smarter iterator for /proc/interrupts. > > Signed-off-by: Thomas Gleixner > --- > kernel/irq/internals.h | 2 ++ > kernel/irq/irqdesc.c | 12 +++++------- > 2 files changed, 7 insertions(+), 7 deletions(-) > [...] > > -static unsigned int irq_find_at_or_after(unsigned int offset) > +struct irq_desc *irq_find_desc_at_or_after(unsigned int offset) > { > unsigned long index = offset; > - struct irq_desc *desc; > - > - guard(rcu)(); Is the drop of guard(rcu)() intentional here? irq_get_next_irq() dereferences the returned pointer after mt_find() has dropped rcu_read_unlock(). Should it hold its own guard(rcu)() to keep the same behaviour as before?