[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC 2/6] vubr: remove unnecessary dispatcher_remove
From: |
marcandre . lureau |
Subject: |
[Qemu-devel] [RFC 2/6] vubr: remove unnecessary dispatcher_remove |
Date: |
Sat, 9 Apr 2016 16:19:03 +0200 |
From: Marc-André Lureau <address@hidden>
The call fd is not watched
Signed-off-by: Marc-André Lureau <address@hidden>
---
tests/vhost-user-bridge.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tests/vhost-user-bridge.c b/tests/vhost-user-bridge.c
index 7d548d8..b9bf018 100644
--- a/tests/vhost-user-bridge.c
+++ b/tests/vhost-user-bridge.c
@@ -975,7 +975,6 @@ vubr_get_vring_base_exec(VubrDev *dev, VhostUserMsg *vmsg)
if (dev->vq[index].call_fd != -1) {
close(dev->vq[index].call_fd);
- dispatcher_remove(&dev->dispatcher, dev->vq[index].call_fd);
dev->vq[index].call_fd = -1;
}
if (dev->vq[index].kick_fd != -1) {
@@ -1039,7 +1038,6 @@ vubr_set_vring_call_exec(VubrDev *dev, VhostUserMsg *vmsg)
if (dev->vq[index].call_fd != -1) {
close(dev->vq[index].call_fd);
- dispatcher_remove(&dev->dispatcher, dev->vq[index].call_fd);
}
dev->vq[index].call_fd = vmsg->fds[0];
DPRINT("Got call_fd: %d for vq: %d\n", vmsg->fds[0], index);
--
2.5.5
- [Qemu-devel] [RFC 0/6] Start a contrib/libvhost-user, marcandre . lureau, 2016/04/09
- [Qemu-devel] [RFC 1/6] vubr: remove false comment, marcandre . lureau, 2016/04/09
- [Qemu-devel] [RFC 2/6] vubr: remove unnecessary dispatcher_remove,
marcandre . lureau <=
- [Qemu-devel] [RFC 3/6] vubr: indicate peer disconnected, marcandre . lureau, 2016/04/09
- [Qemu-devel] [RFC 4/6] vubr: do not accept more than one connection, marcandre . lureau, 2016/04/09
- [Qemu-devel] [RFC 5/6] contrib: add libvhost-user, marcandre . lureau, 2016/04/09
- [Qemu-devel] [RFC 6/6] test/vubr: use contrib/libvhost-user, marcandre . lureau, 2016/04/09