[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 14/18] block/ssh: drop return_true()
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 14/18] block/ssh: drop return_true() |
Date: |
Fri, 16 Aug 2013 17:47:20 +0200 |
.io_flush() is no longer called so drop return_true().
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
block/ssh.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/block/ssh.c b/block/ssh.c
index d7e7bf8..e149da9 100644
--- a/block/ssh.c
+++ b/block/ssh.c
@@ -740,14 +740,6 @@ static void restart_coroutine(void *opaque)
qemu_coroutine_enter(co, NULL);
}
-/* Always true because when we have called set_fd_handler there is
- * always a request being processed.
- */
-static int return_true(void *opaque)
-{
- return 1;
-}
-
static coroutine_fn void set_fd_handler(BDRVSSHState *s)
{
int r;
@@ -766,7 +758,7 @@ static coroutine_fn void set_fd_handler(BDRVSSHState *s)
DPRINTF("s->sock=%d rd_handler=%p wr_handler=%p", s->sock,
rd_handler, wr_handler);
- qemu_aio_set_fd_handler(s->sock, rd_handler, wr_handler, return_true, co);
+ qemu_aio_set_fd_handler(s->sock, rd_handler, wr_handler, NULL, co);
}
static coroutine_fn void clear_fd_handler(BDRVSSHState *s)
--
1.8.3.1
- [Qemu-devel] [PULL 05/18] tests: adjust test-thread-pool to new aio_poll() semantics, (continued)
- [Qemu-devel] [PULL 09/18] block/iscsi: drop iscsi_process_flush(), Stefan Hajnoczi, 2013/08/16
- [Qemu-devel] [PULL 10/18] block/linux-aio: drop qemu_laio_completion_cb(), Stefan Hajnoczi, 2013/08/16
- [Qemu-devel] [PULL 11/18] block/nbd: drop nbd_have_request(), Stefan Hajnoczi, 2013/08/16
- [Qemu-devel] [PULL 12/18] block/rbd: drop qemu_rbd_aio_flush_cb(), Stefan Hajnoczi, 2013/08/16
- [Qemu-devel] [PULL 13/18] block/sheepdog: drop have_co_req() and aio_flush_request(), Stefan Hajnoczi, 2013/08/16
- [Qemu-devel] [PULL 14/18] block/ssh: drop return_true(),
Stefan Hajnoczi <=
- [Qemu-devel] [PULL 15/18] dataplane/virtio-blk: drop flush_true() and flush_io(), Stefan Hajnoczi, 2013/08/16
- [Qemu-devel] [PULL 16/18] thread-pool: drop thread_pool_active(), Stefan Hajnoczi, 2013/08/16
- [Qemu-devel] [PULL 17/18] tests: drop event_active_cb(), Stefan Hajnoczi, 2013/08/16
- [Qemu-devel] [PULL 18/18] aio: drop io_flush argument, Stefan Hajnoczi, 2013/08/16
- Re: [Qemu-devel] [PULL 00/18] Block patches, Stefan Hajnoczi, 2013/08/19