public inbox for linux-pci@vger.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: dan.j.williams@intel.com
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Keith Busch" <kbusch@meta.com>,
	linux-pci@vger.kernel.org, bhelgaas@google.com, alex@shazbot.org,
	"Lukas Wunner" <lukas@wunner.de>,
	"Keith Busch" <kbusch@kernel.org>,
	"Jinhui Guo" <guojinhui.liam@bytedance.com>
Subject: Re: [PATCH 2/2] pci: fix slot reset device locking
Date: Wed, 28 Jan 2026 15:11:07 -0600	[thread overview]
Message-ID: <20260128211107.GA433824@bhelgaas> (raw)
In-Reply-To: <697a7a9913e11_309510010@dwillia2-mobl4.notmuch>

On Wed, Jan 28, 2026 at 01:07:37PM -0800, dan.j.williams@intel.com wrote:
> Ilpo Järvinen wrote:
> > On Wed, 28 Jan 2026, Bjorn Helgaas wrote:
> > > On Fri, Jan 16, 2026 at 10:41:50AM -0800, Keith Busch wrote:
> > > > From: Keith Busch <kbusch@kernel.org>
> > > > 
> > > > Like pci_bus_lock, pci_slot_lock needs to lock the bridge device to
> > > > prevent the warning:
> > > 
> > > I *think* this actually refers to pci_bus_trylock() and
> > > pci_slot_trylock() (not pci_bus_lock() and pci_slot_lock()), since
> > > that's what this patch changes?
> > > 
> > > It's unfortunate that pci_bus_trylock() and pci_slot_trylock() are so
> > > similar but separate.  If there were combined, this kind of issue
> > > where one is fixed but the other isn't wouldn't happen.
> > > 
> > > But what about pci_bus_lock() and pci_slot_lock()?  They are also
> > > almost identical, but pci_bus_lock() locks bus->self while
> > > pci_slot_lock() does not.  Should it?
> > >
> > > All these almost-but-not-quite identical paths make my head hurt ;)
> > 
> > My series does attempt to consolidation them (check the pending patches 
> > from me).
> > 
> > (It doesn't consider this fix patch though but the other one is taken 
> > into account, the series was build on top of it).
> 
> Lore link?

I think it's
https://lore.kernel.org/all/20260116125742.1890-1-ilpo.jarvinen@linux.intel.com/

  reply	other threads:[~2026-01-28 21:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-16 18:41 [PATCH 1/2] pci: fix slot trylock error handling Keith Busch
2026-01-16 18:41 ` [PATCH 2/2] pci: fix slot reset device locking Keith Busch
2026-01-28 18:03   ` Bjorn Helgaas
2026-01-28 19:13     ` Keith Busch
2026-01-28 22:53       ` Bjorn Helgaas
2026-01-29 15:59         ` Keith Busch
2026-01-28 19:54     ` Ilpo Järvinen
2026-01-28 21:07       ` dan.j.williams
2026-01-28 21:11         ` Bjorn Helgaas [this message]
2026-01-28 21:00   ` dan.j.williams
2026-01-27 16:09 ` [PATCH 1/2] pci: fix slot trylock error handling Keith Busch
2026-01-28  9:16   ` Ilpo Järvinen
2026-01-28 15:11     ` Keith Busch
2026-01-28 15:14       ` Ilpo Järvinen
2026-01-27 23:20 ` Bjorn Helgaas
2026-01-28 20:47 ` dan.j.williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260128211107.GA433824@bhelgaas \
    --to=helgaas@kernel.org \
    --cc=alex@shazbot.org \
    --cc=bhelgaas@google.com \
    --cc=dan.j.williams@intel.com \
    --cc=guojinhui.liam@bytedance.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=kbusch@kernel.org \
    --cc=kbusch@meta.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=lukas@wunner.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox