Skip to content

Commit

Permalink
qemu-nbd: remove unnecessary qemu_notify_event()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini committed Aug 14, 2015
1 parent fe2d1a8 commit 0683264
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion qemu-nbd.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0683264

Please sign in to comment.