All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Helgaas <bhelgaas@google.com>
To: Sandeep Mann <sandeep@purestorage.com>
Cc: linux-pci@vger.kernel.org
Subject: Re: [PATCH] PCI: pciehp: Use ordered workqueue for HPC events
Date: Thu, 4 Sep 2014 15:10:42 -0600	[thread overview]
Message-ID: <20140904211042.GD17125@google.com> (raw)
In-Reply-To: <1406933232-1560-1-git-send-email-sandeep@purestorage.com>

On Fri, Aug 01, 2014 at 03:47:12PM -0700, Sandeep Mann wrote:
> Using an ordered workqueue serializes processing of hotplug event. Processing
> an hotplug event for some devices can take a relatively "long" time, which
> means if a device is added and removed in quick succession (or due to flacky
> hardware), it can lead to multiple outstanding hotplug events. Processing
> these events concurrently can lead to unknown internal state and/or kernel
> panics.
> 
> Signed-off-by: Sandeep Mann <sandeep@purestorage.com>

What's the status of this?  I see Rajat's ack, but there was a lot of
subsequent discussion, and I'm not sure whether there was a conclusion.

Given that, I'd like to see a bugzilla with the relevant background
(lspci -vv, dmesg log).  Also, shpchp_core.c has similar code, so I'd like
to see either a similar patch for it or an explanation of why that driver
doesn't need it.

So I'll drop this for now, pending these updates.

Bjorn

> ---
>  drivers/pci/hotplug/pciehp_hpc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
> index 42914e0..c4eedab 100644
> --- a/drivers/pci/hotplug/pciehp_hpc.c
> +++ b/drivers/pci/hotplug/pciehp_hpc.c
> @@ -681,7 +681,7 @@ static int pcie_init_slot(struct controller *ctrl)
>  	if (!slot)
>  		return -ENOMEM;
>  
> -	slot->wq = alloc_workqueue("pciehp-%u", 0, 0, PSN(ctrl));
> +	slot->wq = alloc_ordered_workqueue("pciehp-%u", 0, PSN(ctrl));
>  	if (!slot->wq)
>  		goto abort;
>  
> -- 
> 1.8.3.2
> 

  parent reply	other threads:[~2014-09-04 21:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-01 22:47 [PATCH] PCI: pciehp: Use ordered workqueue for HPC events Sandeep Mann
2014-08-04 20:22 ` Rajat Jain
2014-08-12 22:00 ` Bjorn Helgaas
2014-08-12 22:30   ` Sandeep S Mann
2014-08-12 23:31     ` Rajat Jain
2014-08-13  0:09       ` Sandeep S Mann
2014-08-13  0:33         ` Rajat Jain
2014-08-13 17:00           ` Sandeep S Mann
2014-09-04 21:10 ` Bjorn Helgaas [this message]
2014-11-04  8:10   ` Rajat Jain

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=20140904211042.GD17125@google.com \
    --to=bhelgaas@google.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=sandeep@purestorage.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.