summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-07-31 10:55:51 -0600
committerJens Axboe <axboe@kernel.dk>2019-07-31 10:55:51 -0600
commita15abb450459195ce72d515dc564f07f7726bf5f (patch)
tree59e3cbebb16bc386479b9a7477628a8ec5113222
parent9dabe51c828e7d7951123e23f56dfdca4eda1dc4 (diff)
parent576d4cf9b040e49ca467cd94db0567d392510e9d (diff)
Merge branch 'dev' of https://github.com/smartxworks/fio
* 'dev' of https://github.com/smartxworks/fio: libiscsi: continue working when meets EINTR or EAGAIN
-rw-r--r--engines/libiscsi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/libiscsi.c b/engines/libiscsi.c
index bea94c5..58667fb 100644
--- a/engines/libiscsi.c
+++ b/engines/libiscsi.c
@@ -351,6 +351,9 @@ static int fio_iscsi_getevents(struct thread_data *td, unsigned int min,
ret = poll(iscsi_info->pfds, iscsi_info->nr_luns, -1);
if (ret < 0) {
+ if (errno == EINTR || errno == EAGAIN) {
+ continue;
+ }
log_err("iscsi: failed to poll events: %s.\n",
strerror(errno));
break;