diff options
author | Peter Lieven <pl@kamp.de> | 2015-04-07 22:08:15 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2015-04-09 10:31:45 +0100 |
commit | 05b685fbabb7fdcab72cb42b27db916fd74b2265 (patch) | |
tree | f2446f518d780be7921321c30c6ad4d787a7e5ef /block/qed.c | |
parent | e8d3b1a25f284cdf9705b7cf0412281cc9ee3a36 (diff) |
block/iscsi: handle zero events from iscsi_which_events
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 <pl@kamp.de>
Message-id: 1428437295-29577-1-git-send-email-pl@kamp.de
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block/qed.c')
0 files changed, 0 insertions, 0 deletions