|
From: | Max Reitz |
Subject: | Re: [Qemu-devel] [PATCH 1/3] nbd: Drop nbd_can_read() |
Date: | Sat, 14 Jun 2014 20:31:35 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
On 14.06.2014 09:57, Paolo Bonzini wrote:
Il 14/06/2014 00:30, Max Reitz ha scritto:+static void nbd_set_handlers(NBDClient *client) +{ + if (client->exp && client->exp->ctx) { + aio_set_fd_handler(client->exp->ctx, client->sock, + client->can_read ? nbd_read : NULL,+ client->restart_write ? nbd_restart_write : NULL,Instead of client->restart_write you can just use client->send_coroutine. Apart from this, the patch is okay.
Oh, right, thanks. Max
[Prev in Thread] | Current Thread | [Next in Thread] |