aboutsummaryrefslogtreecommitdiff
path: root/virt/kvm/ioapic.h
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2008-12-25 13:39:07 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2008-12-25 13:39:08 +0100
commit6eff208f479d6fe99fd92c0e6bf7e930bb45cd30 (patch)
tree9dd40942bd0083873471f91e21d07b865a228414 /virt/kvm/ioapic.h
parent9cd67421977a701272820987ff9e6f197b1b97b7 (diff)
[S390] cio: Fix I/O subchannel refcounting.
Subchannel refcounting was incorrect in some places, especially a refcount was missing when ccw_device_call_sch_unregister() was called and the refcount was not correctly switched after moving devices. Fix this by establishing the following rules: - The ccw_device obtains a reference on its parent subchannel when dev.parent is set and gives it up in its release function. This is needed because we need a parent reference for correct refcounting even before the ccw device is (if at all) registered. - When calling device_move(), obtain a reference on the new subchannel before moving the ccw device and give up the reference on the old parent after moving. This brings the refcount in line with the first rule. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'virt/kvm/ioapic.h')
0 files changed, 0 insertions, 0 deletions