summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-07-27 13:52:55 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-08-14 23:40:32 +0200
commit06832648e1dbd268d7b719b9a49df476af689c6d (patch)
treead143182f0c467bd9aa13efb0f04943a42f469e4
parentfe2d1a81d96e8ffe74974bd4b3ebc608f1f6a25d (diff)
downloadqemu-06832648e1dbd268d7b719b9a49df476af689c6d.tar.gz
qemu-06832648e1dbd268d7b719b9a49df476af689c6d.tar.bz2
qemu-06832648e1dbd268d7b719b9a49df476af689c6d.zip
qemu-nbd: remove unnecessary qemu_notify_event()
This was needed when qemu-nbd was using qemu_set_fd_handler2. It is not needed anymore now that nbd_update_server_fd_handler is called whenever nbd_can_accept() can change from false to true. nbd_update_server_fd_handler will call qemu_set_fd_handler(), which will call qemu_notify_event(). Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--qemu-nbd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/qemu-nbd.c b/qemu-nbd.c
index 5106b802e6..d9644b2431 100644
--- a/qemu-nbd.c
+++ b/qemu-nbd.c
@@ -362,7 +362,6 @@ static void nbd_client_closed(NBDClient *client)
state = TERMINATE;
}
nbd_update_server_fd_handler(server_fd);
- qemu_notify_event();
nbd_client_put(client);
}