[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 7/8] virtio-blk: dataplane cleanup
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 7/8] virtio-blk: dataplane cleanup |
Date: |
Mon, 18 Jul 2016 17:59:20 +0100 |
From: Cao jin <address@hidden>
No need duplicate the judgment, there is one in function entry.
Cc: Stefan Hajnoczi <address@hidden>
Cc: Kevin Wolf <address@hidden>
Cc: Max Reitz <address@hidden>
Signed-off-by: Cao jin <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
hw/block/dataplane/virtio-blk.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c
index 54b9ac1..704a763 100644
--- a/hw/block/dataplane/virtio-blk.c
+++ b/hw/block/dataplane/virtio-blk.c
@@ -112,10 +112,8 @@ void virtio_blk_data_plane_create(VirtIODevice *vdev,
VirtIOBlkConf *conf,
s->vdev = vdev;
s->conf = conf;
- if (conf->iothread) {
- s->iothread = conf->iothread;
- object_ref(OBJECT(s->iothread));
- }
+ s->iothread = conf->iothread;
+ object_ref(OBJECT(s->iothread));
s->ctx = iothread_get_aio_context(s->iothread);
s->bh = aio_bh_new(s->ctx, notify_guest_bh, s);
s->batch_notify_vqs = bitmap_new(conf->num_queues);
--
2.7.4
- [Qemu-devel] [PULL 0/8] Block patches, Stefan Hajnoczi, 2016/07/18
- [Qemu-devel] [PULL 1/8] spec/parallels: fix a mistake, Stefan Hajnoczi, 2016/07/18
- [Qemu-devel] [PULL 2/8] linux-aio: share one LinuxAioState within an AioContext, Stefan Hajnoczi, 2016/07/18
- [Qemu-devel] [PULL 3/8] aio_ctx_check: follow CODING_STYLE, Stefan Hajnoczi, 2016/07/18
- [Qemu-devel] [PULL 4/8] linux-aio: prevent submitting more than MAX_EVENTS, Stefan Hajnoczi, 2016/07/18
- [Qemu-devel] [PULL 5/8] aio-posix: remove useless parameter, Stefan Hajnoczi, 2016/07/18
- [Qemu-devel] [PULL 7/8] virtio-blk: dataplane cleanup,
Stefan Hajnoczi <=
- [Qemu-devel] [PULL 6/8] checkpatch: consider git extended headers valid patches, Stefan Hajnoczi, 2016/07/18
- [Qemu-devel] [PULL 8/8] MAINTAINERS: Add include/block/aio.h to block I/O path section, Stefan Hajnoczi, 2016/07/18
- Re: [Qemu-devel] [PULL 0/8] Block patches, Peter Maydell, 2016/07/19