RE: [PATCH v4 8/8] pciehp: Introduce hotplug_lock to serialize HP events

2014-02-05 Thread Rajat Jain
> Yinghai Lu > Cc: Guenter Roeck; Rajat Jain; Rajat Jain > Subject: [PATCH v4 8/8] pciehp: Introduce hotplug_lock to serialize HP > events > > Today it is there is no protection around pciehp_enable_slot() and > pciehp_disable_slot() to ensure that they complete before anoth

[PATCH v4 8/8] pciehp: Introduce hotplug_lock to serialize HP events

2014-02-04 Thread Rajat Jain
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 be