Re: [PATCH 1/5] PCI: protect restore with device lock to be consistent

2017-10-12 Thread Sinan Kaya
On 10/11/2017 6:08 PM, Bjorn Helgaas wrote: > I think this series makes a lot of sense overall; thanks for doing > this work! I had a few comments on the individual patches. > > (This response would ordinarily be to the cover letter, but there > isn't one, so I'm just responding to the first patc

Re: [PATCH 1/5] PCI: protect restore with device lock to be consistent

2017-10-11 Thread Bjorn Helgaas
I think this series makes a lot of sense overall; thanks for doing this work! I had a few comments on the individual patches. (This response would ordinarily be to the cover letter, but there isn't one, so I'm just responding to the first patch.) On Sat, Sep 23, 2017 at 08:16:54PM -0400, Sinan K

[PATCH 1/5] PCI: protect restore with device lock to be consistent

2017-09-23 Thread Sinan Kaya
Commit b014e96d1abb ("PCI: Protect pci_error_handlers->reset_notify() usage with device_lock()") added protection around pci_dev_restore() function so that device specific remove callback does not cause a race condition against hotplug. pci_dev_lock() usage has been forgotten in two different plac