aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-26 09:45:36 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-26 09:45:36 +0000
commit3a8cba17a08903a1fba0f0434cc02f6e0a8038d1 (patch)
tree7b6583347719db697cf774e52847708666a7dc63
parentb020e80f68bab35d1eb19d81eea4730d9d40b75b (diff)
downloadrspamd-3a8cba17a08903a1fba0f0434cc02f6e0a8038d1.tar.gz
rspamd-3a8cba17a08903a1fba0f0434cc02f6e0a8038d1.zip
[Minor] Fix return values
-rw-r--r--contrib/libev/ev_iouring.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/libev/ev_iouring.c b/contrib/libev/ev_iouring.c
index bfd3de65f..612391b53 100644
--- a/contrib/libev/ev_iouring.c
+++ b/contrib/libev/ev_iouring.c
@@ -255,7 +255,7 @@ struct io_uring_sqe *
iouring_sqe_get (EV_P)
{
unsigned tail;
-
+
for (;;)
{
tail = EV_SQ_VAR (tail);
@@ -295,8 +295,9 @@ iouring_sqe_submit (EV_P_ struct io_uring_sqe *sqe)
EV_SQ_ARRAY [idx] = idx;
ECB_MEMORY_FENCE_RELEASE;
++EV_SQ_VAR (tail);
- /*ECB_MEMORY_FENCE_RELEASE; /* for the time being we assume this is not needed */
+ // ECB_MEMORY_FENCE_RELEASE; /* for the time being we assume this is not needed */
++iouring_to_submit;
+ return sqe;
}
/*****************************************************************************/
@@ -328,6 +329,8 @@ iouring_internal_destroy (EV_P)
ev_ref (EV_A);
ev_io_stop (EV_A_ &iouring_tfd_w);
}
+
+ return 0;
}
ecb_cold
@@ -603,7 +606,7 @@ static int
iouring_handle_cq (EV_P)
{
unsigned head, tail, mask;
-
+
head = EV_CQ_VAR (head);
ECB_MEMORY_FENCE_ACQUIRE;
tail = EV_CQ_VAR (tail);