You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the end of the day the nowait mode to use depends on three sources of
information: the filesystem itself, the kernel version and the reactor
option (CLI switch). By now the selection was between yes and no modes,
this patch wires the read_only mode detection and activation.
Signed-off-by: Pavel Emelyanov <[email protected]>
, blocked_reactor_reports_per_minute(*this, "blocked-reactor-reports-per-minute", 5, "Maximum number of backtraces reported by stall detector per minute")
3906
3906
, blocked_reactor_report_format_oneline(*this, "blocked-reactor-report-format-oneline", true, "Print a simplified backtrace on a single line")
3907
3907
, relaxed_dma(*this, "relaxed-dma", "allow using buffered I/O if DMA is not available (reduces performance)")
3908
-
, linux_aio_nowait(*this, "linux-aio-nowait", internal::kernel_uname().whitelisted({"4.13"}), // base version where this works
3908
+
, linux_aio_nowait(*this, "linux-aio-nowait", {},
3909
3909
"use the Linux NOWAIT AIO feature, which reduces reactor stalls due to aio (autodetected)")
3910
3910
, unsafe_bypass_fsync(*this, "unsafe-bypass-fsync", false, "Bypass fsync(), may result in data loss. Use for testing on consumer drives")
.aio_nowait_works = reactor_opts.linux_aio_nowait.get_value(), // Mixed in with filesystem-provided values later
4453
+
.aio_nowait_works = reactor_opts.linux_aio_nowait.defaulted() ? std::optional<bool>(std::nullopt) : std::optional<bool>(reactor_opts.linux_aio_nowait.get_value()), // Mixed in with filesystem-provided values later
0 commit comments