PCI: pciehp: Add hotplug_lock to serialize hotplug events
commit 50b52fde upstream. Today it is there is no protection around pciehp_enable_slot() and pciehp_disable_slot() to ensure that they complete before another hot-plug operation can be done on that particular slot. This patch introduces the slot->hotplug_lock to ensure that any hotplug operations (add / remove) complete before another hotplug event can begin processing on that particular slot. Signed-off-by: Rajat Jain <rajatxjain@gmail.com> Signed-off-by: Rajat Jain <rajatjain@juniper.net> Signed-off-by: Guenter Roeck <groeck@juniper.net> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> [backported for SLE12] Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com> Signed-off-by: Jiri Slaby <jslaby@suse.com>
Showing
Please register or sign in to comment