All of lore.kernel.org
 help / color / mirror / Atom feed
From: srinath.mannam@broadcom.com (Srinath Mannam)
Subject: [RFC PATCH] nvme: avoid race-conditions when enabling devices
Date: Fri, 23 Mar 2018 14:14:05 +0530	[thread overview]
Message-ID: <0b37cdbe43a350e46057efa197ba471a@mail.gmail.com> (raw)
In-Reply-To: <2116255963.5924726.1521790087788.JavaMail.zimbra@kalray.eu>

Hi Marta,

I could not get time to work on this.
The present patch works for our platforms. so we continue with that.
I will update new changes little later.
If you have time, please try the same patch and let us know if any issue you
see.

Regards,
Srinath.

-----Original Message-----
From: Marta Rybczynska [mailto:mrybczyn@kalray.eu]
Sent: Friday, March 23, 2018 12:58 PM
To: Bjorn Helgaas <helgaas at kernel.org>
Cc: Keith Busch <keith.busch at intel.com>; Ming Lei <ming.lei at redhat.com>;
axboe at fb.com; hch at lst.de; sagi at grimberg.me; linux-nvme at lists.infradead.org;
linux-kernel at vger.kernel.org; bhelgaas at google.com;
linux-pci at vger.kernel.org; Pierre-Yves Kerbrat <pkerbrat at kalray.eu>; Srinath
Mannam <srinath.mannam at broadcom.com>
Subject: Re: [RFC PATCH] nvme: avoid race-conditions when enabling devices


> On Wed, Mar 21, 2018@05:10:56PM +0100, Marta Rybczynska wrote:
>>
>> The problem may happen also with other device doing its probe and
>> nvme running its workqueue (and we probably have seen it in practice
>> too). We were thinking about a lock in the pci generic code too,
>> that's why I've put the linux-pci@ list in copy.
>
> Yes, this is a generic problem in the PCI core.  We've tried to fix it
> in the past but haven't figured it out yet.
>
> See 40f11adc7cd9 ("PCI: Avoid race while enabling upstream bridges")
> and 0f50a49e3008 ("Revert "PCI: Avoid race while enabling upstream
> bridges"").
>
> It's not trivial, but if you figure out a good way to fix this, I'd be
> thrilled.
>

Bjorn, Srinath, are you aware of anyone working on an updated fix for this
one?

Marta

WARNING: multiple messages have this Message-ID (diff)
From: Srinath Mannam <srinath.mannam@broadcom.com>
To: Marta Rybczynska <mrybczyn@kalray.eu>,
	Bjorn Helgaas <helgaas@kernel.org>
Cc: Keith Busch <keith.busch@intel.com>,
	Ming Lei <ming.lei@redhat.com>,
	axboe@fb.com, hch@lst.de, sagi@grimberg.me,
	linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org,
	bhelgaas@google.com, linux-pci@vger.kernel.org,
	Pierre-Yves Kerbrat <pkerbrat@kalray.eu>
Subject: RE: [RFC PATCH] nvme: avoid race-conditions when enabling devices
Date: Fri, 23 Mar 2018 14:14:05 +0530	[thread overview]
Message-ID: <0b37cdbe43a350e46057efa197ba471a@mail.gmail.com> (raw)
In-Reply-To: <2116255963.5924726.1521790087788.JavaMail.zimbra@kalray.eu>

Hi Marta,

I could not get time to work on this.
The present patch works for our platforms. so we continue with that.
I will update new changes little later.
If you have time, please try the same patch and let us know if any issue you
see.

Regards,
Srinath.

-----Original Message-----
From: Marta Rybczynska [mailto:mrybczyn@kalray.eu]
Sent: Friday, March 23, 2018 12:58 PM
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Keith Busch <keith.busch@intel.com>; Ming Lei <ming.lei@redhat.com>;
axboe@fb.com; hch@lst.de; sagi@grimberg.me; linux-nvme@lists.infradead.org;
linux-kernel@vger.kernel.org; bhelgaas@google.com;
linux-pci@vger.kernel.org; Pierre-Yves Kerbrat <pkerbrat@kalray.eu>; Srinath
Mannam <srinath.mannam@broadcom.com>
Subject: Re: [RFC PATCH] nvme: avoid race-conditions when enabling devices


> On Wed, Mar 21, 2018 at 05:10:56PM +0100, Marta Rybczynska wrote:
>>
>> The problem may happen also with other device doing its probe and
>> nvme running its workqueue (and we probably have seen it in practice
>> too). We were thinking about a lock in the pci generic code too,
>> that's why I've put the linux-pci@ list in copy.
>
> Yes, this is a generic problem in the PCI core.  We've tried to fix it
> in the past but haven't figured it out yet.
>
> See 40f11adc7cd9 ("PCI: Avoid race while enabling upstream bridges")
> and 0f50a49e3008 ("Revert "PCI: Avoid race while enabling upstream
> bridges"").
>
> It's not trivial, but if you figure out a good way to fix this, I'd be
> thrilled.
>

Bjorn, Srinath, are you aware of anyone working on an updated fix for this
one?

Marta

  reply	other threads:[~2018-03-23  8:44 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-21 11:00 [RFC PATCH] nvme: avoid race-conditions when enabling devices Marta Rybczynska
2018-03-21 11:00 ` Marta Rybczynska
2018-03-21 11:50 ` Ming Lei
2018-03-21 11:50   ` Ming Lei
2018-03-21 12:10   ` Marta Rybczynska
2018-03-21 12:10     ` Marta Rybczynska
2018-03-21 15:48     ` Ming Lei
2018-03-21 15:48       ` Ming Lei
2018-03-21 16:02       ` Keith Busch
2018-03-21 16:02         ` Keith Busch
2018-03-21 16:10         ` Marta Rybczynska
2018-03-21 16:10           ` Marta Rybczynska
2018-03-21 21:53           ` Bjorn Helgaas
2018-03-21 21:53             ` Bjorn Helgaas
2018-03-23  7:28             ` Marta Rybczynska
2018-03-23  7:28               ` Marta Rybczynska
2018-03-23  8:44               ` Srinath Mannam [this message]
2018-03-23  8:44                 ` Srinath Mannam
2018-03-23  7:44           ` Marta Rybczynska
2018-03-23  7:44             ` Marta Rybczynska
2018-03-23  7:44             ` Marta Rybczynska

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=0b37cdbe43a350e46057efa197ba471a@mail.gmail.com \
    --to=srinath.mannam@broadcom.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.