All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yijing Wang <wangyijing@huawei.com>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: <linux-pci@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	Daniel J Blueman <daniel@quora.org>,
	Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>,
	Tejun Heo <tj@kernel.org>, Yinghai Lu <yinghai@kernel.org>,
	Jiang Liu <liuj97@gmail.com>
Subject: Re: [PATCH v7 0/4] PCI: pciehp, shpchp deadlock fixes
Date: Mon, 14 Jan 2013 09:30:40 +0800	[thread overview]
Message-ID: <50F35FC0.2000507@huawei.com> (raw)
In-Reply-To: <20130113232606.7225.94802.stgit@bhelgaas.mtv.corp.google.com>

On 2013/1/14 7:27, Bjorn Helgaas wrote:
> This is v7 of Yijing Wang's pciehp deadlock fix.  Here's the history of
> previous postings:
> 
>     RFC Oct 31 2012
>     v2  Nov  9 2012  use slot name, not device name
>     v3  Nov 12 2012  create workqueues in pcie_init_slot(), pciehp-%u format
>     v4  Nov 13 2012  use alloc_workqueue(name, 0, 0) again
>     v5  Jan  9 2013  fix similar problem in shpchp
>     v6  Jan 10 2013  add pciehp backtrace from Daniel 
> 
> This v7 series is functionally identical to v6.  In v7, I split the single
> shpchp patch into three:
> 
>     PCI: shpchp: Make shpchp_wq non-ordered
>     PCI: shpchp: Handle push button event asynchronously
>     PCI: shpchp: Use per-slot workqueues to avoid deadlock
> 

Nice, split the single patch into three will make the log clearer about the
code changes.

> The first fixes what appears to be an error in e24dcbef93 ("shpchp: update
> workqueue usage").  I split this out so Tejun could easily review it by itself.
> 
> I split the second out because it corresponds to a pciehp bugfix, 486b10b9f4
> ("PCI: pciehp: Handle push button event asynchronously"), that also affects
> shpchp.
> 
> The "PCI: shpchp: Use per-slot workqueues to avoid deadlock" that remains
> then corresponds exactly to Yijing's original pciehp deadlock fix.
> 
> I also rewrote the changelogs.
> 
> I propose to push the entire series for inclusion in v3.8, since it
> fixes an easy-to-cause deadlock with Thunderbolt adapters.
> 
> ---
> 
> Bjorn Helgaas (3):
>       PCI: shpchp: Make shpchp_wq non-ordered
>       PCI: shpchp: Handle push button event asynchronously
>       PCI: shpchp: Use per-slot workqueues to avoid deadlock
> 
> Yijing Wang (1):
>       PCI: pciehp: Use per-slot workqueues to avoid deadlock
> 
> 
>  drivers/pci/hotplug/pciehp.h      |    2 +-
>  drivers/pci/hotplug/pciehp_core.c |   11 ++---------
>  drivers/pci/hotplug/pciehp_ctrl.c |    8 ++++----
>  drivers/pci/hotplug/pciehp_hpc.c  |   11 ++++++++++-
>  drivers/pci/hotplug/shpchp.h      |    3 +--
>  drivers/pci/hotplug/shpchp_core.c |   36 ++++++++++++++----------------------
>  drivers/pci/hotplug/shpchp_ctrl.c |    6 +++---
>  7 files changed, 35 insertions(+), 42 deletions(-)
> 
> 


-- 
Thanks!
Yijing


      parent reply	other threads:[~2013-01-14  1:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-13 23:27 [PATCH v7 0/4] PCI: pciehp, shpchp deadlock fixes Bjorn Helgaas
2013-01-13 23:27 ` [PATCH v7 1/4] PCI: pciehp: Use per-slot workqueues to avoid deadlock Bjorn Helgaas
2013-01-13 23:27 ` [PATCH v7 2/4] PCI: shpchp: Make shpchp_wq non-ordered Bjorn Helgaas
2013-01-14 16:49   ` Tejun Heo
2013-01-13 23:27 ` [PATCH v7 3/4] PCI: shpchp: Handle push button event asynchronously Bjorn Helgaas
2013-01-13 23:27 ` [PATCH v7 4/4] PCI: shpchp: Use per-slot workqueues to avoid deadlock Bjorn Helgaas
2013-01-14  1:30 ` Yijing Wang [this message]

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=50F35FC0.2000507@huawei.com \
    --to=wangyijing@huawei.com \
    --cc=bhelgaas@google.com \
    --cc=daniel@quora.org \
    --cc=kaneshige.kenji@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=liuj97@gmail.com \
    --cc=tj@kernel.org \
    --cc=yinghai@kernel.org \
    /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.