diff options
author | Fam Zheng <famz@redhat.com> | 2015-10-23 11:08:05 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-10-23 18:18:23 +0200 |
commit | dca21ef23ba48f6f1428c59f295a857e5dc203c8 (patch) | |
tree | 28daeefd49eb4e968495c755f1af3855486e3e61 /nbd.c | |
parent | d87d01e16a0e59a6af9634162cf0ded142b43e0d (diff) | |
download | qemu-dca21ef23ba48f6f1428c59f295a857e5dc203c8.zip qemu-dca21ef23ba48f6f1428c59f295a857e5dc203c8.tar.gz qemu-dca21ef23ba48f6f1428c59f295a857e5dc203c8.tar.bz2 |
aio: Add "is_external" flag for event handlers
All callers pass in false, and the real external ones will switch to
true in coming patches.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'nbd.c')
-rw-r--r-- | nbd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1446,6 +1446,7 @@ static void nbd_set_handlers(NBDClient *client) { if (client->exp && client->exp->ctx) { aio_set_fd_handler(client->exp->ctx, client->sock, + false, client->can_read ? nbd_read : NULL, client->send_coroutine ? nbd_restart_write : NULL, client); @@ -1455,7 +1456,8 @@ static void nbd_set_handlers(NBDClient *client) static void nbd_unset_handlers(NBDClient *client) { if (client->exp && client->exp->ctx) { - aio_set_fd_handler(client->exp->ctx, client->sock, NULL, NULL, NULL); + aio_set_fd_handler(client->exp->ctx, client->sock, + false, NULL, NULL, NULL); } } |