[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH] block/iscsi: handle zero events from iscsi_whic
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [PATCH] block/iscsi: handle zero events from iscsi_which_events |
Date: |
Thu, 9 Apr 2015 10:34:14 +0100 |
On Tue, Apr 7, 2015 at 9:08 PM, Peter Lieven <address@hidden> wrote:
> newer libiscsi versions may return zero events from iscsi_which_events.
>
> In this case iscsi_service will return immediately without any progress.
> To avoid busy waiting for iscsi_which_events to change we deregister all
> read and write handlers in this case and schedule a timer to periodically
> check iscsi_which_events for changed events.
>
> Next libiscsi version will introduce async reconnects and zero events
> are returned while libiscsi is waiting for a reconnect retry.
>
> Signed-off-by: Peter Lieven <address@hidden>
> ---
> block/iscsi.c | 33 +++++++++++++++++++++++++++------
> 1 file changed, 27 insertions(+), 6 deletions(-)
Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block
Stefan