projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fc22034
)
libiscsi: continue working when meets EINTR or EAGAIN
author
Kyle Zhang
<kyle@smartx.com>
Fri, 19 Jul 2019 07:50:01 +0000
(15:50 +0800)
committer
Kyle Zhang
<kyle@smartx.com>
Fri, 19 Jul 2019 10:49:56 +0000
(18:49 +0800)
When poll meets EINTR or EAGAIN, it should continue working rather
than return error.
Signed-off-by: Kyle Zhang <kyle@smartx.com>
engines/libiscsi.c
patch
|
blob
|
blame
|
history
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;