commit 441683d: [Minor] Disable EVBACKEND_IOURING for now as recommended
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Mar 24 17:00:12 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-03-24 16:59:07 +0000
URL: https://github.com/rspamd/rspamd/commit/441683d87b59a89bfd46f557caae254f15be2a7e (HEAD -> master)
[Minor] Disable EVBACKEND_IOURING for now as recommended
---
src/libserver/cfg_utils.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 7e04adb97..01fa08f74 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -2580,11 +2580,11 @@ int
rspamd_config_ev_backend_get (struct rspamd_config *cfg)
{
if (cfg == NULL || cfg->events_backend == NULL) {
- return ev_supported_backends ();
+ return ev_supported_backends () & ~EVBACKEND_IOURING;
}
if (strcmp (cfg->events_backend, "auto") == 0) {
- return ev_supported_backends ();
+ return ev_supported_backends () & ~EVBACKEND_IOURING;
}
else if (strcmp (cfg->events_backend, "epoll") == 0) {
if (ev_supported_backends () & EVBACKEND_EPOLL) {
@@ -2617,7 +2617,7 @@ rspamd_config_ev_backend_get (struct rspamd_config *cfg)
cfg->events_backend);
}
- return EVBACKEND_ALL;
+ return ev_supported_backends () & ~EVBACKEND_IOURING;
}
const gchar *
More information about the Commits
mailing list