aboutsummaryrefslogtreecommitdiff
path: root/src/unix/internal.h
diff options
context:
space:
mode:
authorSantiago Gimeno <santiago.gimeno@gmail.com>2024-08-06 22:10:13 +0200
committerGitHub <noreply@github.com>2024-08-06 22:10:13 +0200
commite78e29c231481683c7e72450eeeb1b75b1109b2c (patch)
treee6b6571cbdcbeec64496f3a9aa98b3adfa370309 /src/unix/internal.h
parent9b3b61f606cbc4df1680a1aa08959c91023d99eb (diff)
downloadlibuv-e78e29c231481683c7e72450eeeb1b75b1109b2c.tar.gz
libuv-e78e29c231481683c7e72450eeeb1b75b1109b2c.zip
linux: disable SQPOLL io_uring by default (#4492)
The SQPOLL io_uring instance wasn't providing consistent behaviour to users depending on kernel versions, load shape, ... creating issues difficult to track and fix. Don't use this ring by default but allow enabling it by calling `uv_loop_configure()` with `UV_LOOP_ENABLE_IO_URING_SQPOLL`.
Diffstat (limited to 'src/unix/internal.h')
-rw-r--r--src/unix/internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unix/internal.h b/src/unix/internal.h
index a8ff3909..8055730a 100644
--- a/src/unix/internal.h
+++ b/src/unix/internal.h
@@ -157,7 +157,8 @@ typedef struct uv__stream_queued_fds_s uv__stream_queued_fds_t;
/* loop flags */
enum {
UV_LOOP_BLOCK_SIGPROF = 0x1,
- UV_LOOP_REAP_CHILDREN = 0x2
+ UV_LOOP_REAP_CHILDREN = 0x2,
+ UV_LOOP_ENABLE_IO_URING_SQPOLL = 0x4
};
/* flags of excluding ifaddr */