From: Rajat Jain Date: Wed, 5 Feb 2014 02:31:11 +0000 (-0800) Subject: PCI: pciehp: Add hotplug_lock to serialize hotplug events X-Git-Tag: v3.15-rc1~143^2~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50b52fdee050745935d92e7026373edea2647e60;p=pandora-kernel.git PCI: pciehp: Add hotplug_lock to serialize hotplug events 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 Signed-off-by: Rajat Jain Signed-off-by: Guenter Roeck Signed-off-by: Bjorn Helgaas --- Reading git-diff-tree failed