[openwrt/openwrt] kernel: add KERNEL_IO_URING option

LEDE Commits lede-commits at lists.infradead.org
Tue Dec 22 13:14:00 EST 2020


ynezz pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/9361964a3a330882ddb1ed60eec127821f350014

commit 9361964a3a330882ddb1ed60eec127821f350014
Author: Andy Walsh <andy.walsh44+github at gmail.com>
AuthorDate: Tue Jun 30 00:52:25 2020 +0200

    kernel: add KERNEL_IO_URING option
    
    * add KERNEL_IO_URING option
    
    NOTES:
    Adds configurable support for the io_uring interface (CONFIG_IO_URING) via KERNEL_IO_URING option.
    
    The kernel only zImage grows by about 5-9KB ?
    
    I would like to enable this by default for all 5.4 kernels, so i can use the new io_uring samba-4.12.x vfs module by default.
    
    The associated liburing was already submitted and merged.
    The kernel + liburing was tested on ARM/mvebu via samba4 vfs_io_uring module and i have no issues so far.
    
    Some extra reads on it and why we should enable it by default, since i expect more packages to use this in the future.
    https://wiki.samba.org/index.php/Samba_4.12_Features_added/changed#.27io_uring.27_vfs_module
    https://lwn.net/Articles/810414/
    https://kernel.dk/io_uring.pdf
    https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.6-IO-uring-Tests
    
    Signed-off-by: Andy Walsh <andy.walsh44+github at gmail.com>
---
 config/Config-kernel.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index 22e2286b8d..c9efed84d3 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -373,6 +373,11 @@ config KERNEL_AIO
 	bool "Compile the kernel with asynchronous IO support"
 	default y if !SMALL_FLASH
 
+config KERNEL_IO_URING
+	bool "Compile the kernel with io_uring support"
+	default y if !SMALL_FLASH
+	depends on LINUX_5_4 
+
 config KERNEL_FHANDLE
 	bool "Compile the kernel with support for fhandle syscalls"
 	default y if !SMALL_FLASH



More information about the lede-commits mailing list