[PATCH 3/3] common/rc: force enable io_uring in _require_io_uring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If kernel supports io_uring, userspace still can/might disable that
supporting by set /proc/sys/kernel/io_uring_disabled=2. Let's set
it to 0, to always enable io_uring (ignore error if there's not
that file).

Signed-off-by: Zorro Lang <zlang@xxxxxxxxxx>
---
 common/rc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/rc b/common/rc
index 50dde313..966c92e3 100644
--- a/common/rc
+++ b/common/rc
@@ -2317,6 +2317,9 @@ _require_aiodio()
 # this test requires that the kernel supports IO_URING
 _require_io_uring()
 {
+	# Force enable io_uring if kernel supports it
+	sysctl -w kernel.io_uring_disabled=0 &> /dev/null
+
 	$here/src/feature -R
 	case $? in
 	0)
-- 
2.43.0





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux