projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libiscsi: continue working when meets EINTR or EAGAIN
[fio.git]
/
engines
/
libiscsi.c
diff --git
a/engines/libiscsi.c
b/engines/libiscsi.c
index bea94c5a14a8dc2a02fba672de4e3b81b0de932d..58667fb216102f21bf7ee4bfaedbb2a1799c929a 100644
(file)
--- 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;