Re: [PATCH] pci: Avoid reentrant calls to work_on_cpu

2013-06-12 Thread Alexander Duyck
On 05/14/2013 07:50 PM, Yinghai Lu wrote: > On Tue, May 14, 2013 at 3:26 PM, Alexander Duyck > wrote: >> This change is meant to fix a deadlock seen when pci_enable_sriov was >> called from within a driver's probe routine. The issue was that >> work_on_cpu calls flush_work which attempts to flush

Re: [PATCH] pci: Avoid reentrant calls to work_on_cpu

2013-05-14 Thread Yinghai Lu
On Tue, May 14, 2013 at 3:26 PM, Alexander Duyck wrote: > This change is meant to fix a deadlock seen when pci_enable_sriov was > called from within a driver's probe routine. The issue was that > work_on_cpu calls flush_work which attempts to flush a work queue for a > cpu that we are currently w

Re: [PATCH] pci: Avoid reentrant calls to work_on_cpu

2013-05-14 Thread Alexander Duyck
On 05/14/2013 05:32 PM, Or Gerlitz wrote: > On Tue, May 14, 2013 at 6:26 PM, Alexander Duyck > wrote: >> >> This change is meant to fix a deadlock seen when pci_enable_sriov was >> called from within a driver's probe routine. The issue was that >> work_on_cpu calls flush_work which attempts to fl

Re: [PATCH] pci: Avoid reentrant calls to work_on_cpu

2013-05-14 Thread Or Gerlitz
On Tue, May 14, 2013 at 6:26 PM, Alexander Duyck wrote: > > This change is meant to fix a deadlock seen when pci_enable_sriov was > called from within a driver's probe routine. The issue was that > work_on_cpu calls flush_work which attempts to flush a work queue for a > cpu that we are currently

[PATCH] pci: Avoid reentrant calls to work_on_cpu

2013-05-14 Thread Alexander Duyck
This change is meant to fix a deadlock seen when pci_enable_sriov was called from within a driver's probe routine. The issue was that work_on_cpu calls flush_work which attempts to flush a work queue for a cpu that we are currently working in. In order to avoid the reentrant path we just skip the