From: Jan Beulich Date: Mon, 19 Sep 2011 16:32:15 +0000 (+0100) Subject: xen/pciback: use mutex rather than spinlock in passthrough backend X-Git-Tag: v3.2-rc1~192^3~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04df355227fa75c015491153cfc93e7ea7a80112;p=pandora-kernel.git xen/pciback: use mutex rather than spinlock in passthrough backend To accommodate the call to the callback function from __xen_pcibk_publish_pci_roots(), which so far dropped and the re- acquired the lock without checking that the list didn't actually change, convert the code to use a mutex instead (observing that the code taking the lock won't ever get called from non-sleepable context). As a result, drop the bogus use of list_for_each_entry_safe() and remove the inappropriate dropping of the lock. Signed-off-by: Jan Beulich Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed