Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Keith Busch <kbusch@kernel.org>
To: "Jozef Matejcik (Nokia)" <jozef.matejcik@nokia.com>
Cc: Lukas Wunner <lukas@wunner.de>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: pci_probe called concurrently in machine with 2 identical PCI devices causing race condition
Date: Thu, 26 Jun 2025 16:37:36 -0600	[thread overview]
Message-ID: <aF3LsDUiRWEMzpn_@kbusch-mbp> (raw)
In-Reply-To: <AS4PR07MB85088754E7FC20E462E4A071937AA@AS4PR07MB8508.eurprd07.prod.outlook.com>

On Thu, Jun 26, 2025 at 06:16:31PM +0000, Jozef Matejcik (Nokia) wrote:
> Hi Keith, thanks for stepping in. The implementation in drivers/pci/*.c seems to be pretty agnostic to probe_type. I did not find any place where this enum is accessed and some decisions are made based on its value.

You're looking in the wrong place. The different handling for device
probe type happens in base/dd.c, function __driver_attach.

  reply	other threads:[~2025-06-26 22:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-26 10:14 pci_probe called concurrently in machine with 2 identical PCI devices causing race condition Jozef Matejcik (Nokia)
2025-06-26 12:08 ` Lukas Wunner
2025-06-26 12:20   ` Jozef Matejcik (Nokia)
2025-06-26 12:26     ` Lukas Wunner
2025-06-26 15:41       ` Keith Busch
2025-06-26 18:16         ` Jozef Matejcik (Nokia)
2025-06-26 22:37           ` Keith Busch [this message]
2025-07-04  8:03         ` Lukas Wunner

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=aF3LsDUiRWEMzpn_@kbusch-mbp \
    --to=kbusch@kernel.org \
    --cc=jozef.matejcik@nokia.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