* [Qemu-devel] [PATCH] virtio-blk: dataplane cleanup
@ 2016-07-18 4:05 Cao jin
2016-07-18 5:29 ` Fam Zheng
2016-07-18 12:51 ` Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: Cao jin @ 2016-07-18 4:05 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-block, Stefan Hajnoczi, Kevin Wolf, Max Reitz
No need duplicate the judgment, there is one in function entry.
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Max Reitz <mreitz@redhat.com>
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
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.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] virtio-blk: dataplane cleanup
2016-07-18 4:05 [Qemu-devel] [PATCH] virtio-blk: dataplane cleanup Cao jin
@ 2016-07-18 5:29 ` Fam Zheng
2016-07-18 12:51 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Fam Zheng @ 2016-07-18 5:29 UTC (permalink / raw)
To: Cao jin; +Cc: qemu-devel, Kevin Wolf, Stefan Hajnoczi, qemu-block, Max Reitz
On Mon, 07/18 12:05, Cao jin wrote:
> No need duplicate the judgment, there is one in function entry.
>
> Cc: Stefan Hajnoczi <stefanha@redhat.com>
> Cc: Kevin Wolf <kwolf@redhat.com>
> Cc: Max Reitz <mreitz@redhat.com>
> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
> ---
> 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.1.0
>
>
>
>
Reviewed-by: Fam Zheng <famz@redhat.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] virtio-blk: dataplane cleanup
2016-07-18 4:05 [Qemu-devel] [PATCH] virtio-blk: dataplane cleanup Cao jin
2016-07-18 5:29 ` Fam Zheng
@ 2016-07-18 12:51 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2016-07-18 12:51 UTC (permalink / raw)
To: Cao jin; +Cc: qemu-devel, qemu-block, Kevin Wolf, Max Reitz
[-- Attachment #1: Type: text/plain, Size: 502 bytes --]
On Mon, Jul 18, 2016 at 12:05:49PM +0800, Cao jin wrote:
> No need duplicate the judgment, there is one in function entry.
>
> Cc: Stefan Hajnoczi <stefanha@redhat.com>
> Cc: Kevin Wolf <kwolf@redhat.com>
> Cc: Max Reitz <mreitz@redhat.com>
> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
> ---
> hw/block/dataplane/virtio-blk.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-18 12:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-18 4:05 [Qemu-devel] [PATCH] virtio-blk: dataplane cleanup Cao jin
2016-07-18 5:29 ` Fam Zheng
2016-07-18 12:51 ` Stefan Hajnoczi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.