Thread (19 messages) 19 messages, 3 authors, 2018-01-02

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

From: hch@infradead.org (Christoph Hellwig)
Date: 2017-11-29 17:36:25
Also in: linux-arm-msm, linux-pci, lkml

On Mon, Nov 27, 2017 at 01:20:22AM -0500, Sinan Kaya wrote:
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 places in the
code. Adding locks for pci_slot_restore() and moving pci_dev_restore()
inside the locks for pci_try_reset_function().

Signed-off-by: Sinan Kaya <redacted>
Looks good,

Reviewed-by: Christoph Hellwig <hch@lst.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help