diff options
author | Jan Beulich <JBeulich@suse.com> | 2011-09-19 17:32:15 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-09-21 16:51:23 -0400 |
commit | 04df355227fa75c015491153cfc93e7ea7a80112 (patch) | |
tree | 99914c01f75b6ab728c568faeccb37ab4a7a4330 /kernel/mutex-debug.c | |
parent | 5fa99911a346e1f95c7932ff99a76693037e7927 (diff) |
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 <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'kernel/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions