From: Rafael J. Wysocki Date: Sat, 13 Jul 2013 21:27:26 +0000 (+0200) Subject: ACPI / hotplug / PCI: Clean up bridge_mutex usage X-Git-Tag: v3.12-rc1~178^2~16^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff181e5a4f6b536e5f3f1601cd5c54e792cd9abc;p=pandora-kernel.git ACPI / hotplug / PCI: Clean up bridge_mutex usage Do not acquire bridge_mutex around the addition of a slot to its bridge's list of slots and arount the addition of a function to its slot's list of functions, because that doesn't help anything right now (those lists are walked without any locking anyway). However, acquire bridge_mutex around the list walk in acpiphp_remove_slots() and use list_for_each_entry() there, because we terminate the walk as soon as we find the first matching entry. This prevents that list walk from colliding with bridge addition and removal. Signed-off-by: Rafael J. Wysocki Tested-by: Mika Westerberg --- Reading git-diff-tree failed