diff options
| author | Peter Lieven | 2015-04-07 22:08:15 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2015-04-09 11:31:45 +0200 |
| commit | 05b685fbabb7fdcab72cb42b27db916fd74b2265 (patch) | |
| tree | f2446f518d780be7921321c30c6ad4d787a7e5ef /tests | |
| parent | aio: strengthen memory barriers for bottom half scheduling (diff) | |
| download | qemu-05b685fbabb7fdcab72cb42b27db916fd74b2265.tar.gz qemu-05b685fbabb7fdcab72cb42b27db916fd74b2265.tar.xz qemu-05b685fbabb7fdcab72cb42b27db916fd74b2265.zip | |
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 'tests')
0 files changed, 0 insertions, 0 deletions
