dataplane: fix implicit IOThread refcount
commit198fd05c357afff22f0b0e02639937519ed49b1f
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 18 Mar 2014 16:50:52 +0000 (18 17:50 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 19 Mar 2014 08:45:25 +0000 (19 09:45 +0100)
tree594e9d05aef5095bd630ac390208a302cd4dfd5c
parent20fccb187c54105177a7859360e3cb7166c8f22f
dataplane: fix implicit IOThread refcount

When creating an IOThread implicitly (the user did not specify
x-iothread=<id>) remember that iothread_find() does not return the
object with an incremented refcount.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/dataplane/virtio-blk.c