package/mpd: add option for async file access using io_uring
PATCH 1/1 package/mpd: add option for async file access using io_uring
In version 0.22 mpd added an option to use the io_uring kernel interface for asynchronous access to local files. Buildroot added the necessary library (package/liburing) in commit 03ca6f4e39874583060317e7e15e9e360220877e.
Add an option for mpd to optionally enable asynchronous file access using io_uring (via liburing).
--- package/mpd/Config.in | 10 ++++++++++ package/mpd/mpd.mk | 7 +++++++ 2 files changed, 17 insertions(+)
package/mpd/Config.in +10 -0
@@ -347,6 +347,16 @@ config BR2_PACKAGE_MPD_AVAHI_SUPPORT comment "avahi support needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS +config BR2_PACKAGE_MPD_IO_URING + bool "io_uring" + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 + select BR2_PACKAGE_LIBURING + help + Asynchronous I/O using kernel io_uring subsystem + +comment "io_uring needs at least kernel version 5.1" + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 + config BR2_PACKAGE_MPD_LIBMPDCLIENT bool "libmpdclient" select BR2_PACKAGE_LIBMPDCLIENT
package/mpd/mpd.mk +7 -0
@@ -119,6 +119,13 @@ else MPD_CONF_OPTS += -Did3tag=disabled endif +ifeq ($(BR2_PACKAGE_MPD_IO_URING),y) +MPD_DEPENDENCIES += liburing +MPD_CONF_OPTS += -Dio_uring=enabled +else +MPD_CONF_OPTS += -Dio_uring=disabled +endif + ifeq ($(BR2_PACKAGE_MPD_JACK2),y) MPD_DEPENDENCIES += jack2 MPD_CONF_OPTS += -Djack=enabled
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Andreas
Le 16/02/2022 à 16:49, Andreas Ziegler a écrit :
Quoted 6 lines
In version 0.22 mpd added an option to use the
io_uringkernel interface for asynchronous access to local files. Buildroot added the necessary library (package/liburing) in commit03ca6f4e39874583060317e7e15e9e360220877e.Add an option for mpd to optionally enable asynchronous file access using
io_uring(via liburing).
The commit title could be
"package/mpd: add io_uring optional dependency"
Quoted 13 lines
Signed-off-by Andreas Ziegler <[email protected]>--- package/mpd/Config.in | 10 ++++++++++ package/mpd/mpd.mk | 7 +++++++ 2 files changed, 17 insertions(+)package/mpd/Config.in +0
-0@@ -347,6 +347,16 @@ config BR2_PACKAGE_MPD_AVAHI_SUPPORT comment "avahi support needs a toolchain w/ dynamic library"
package/mpd/Config.in config BR2_PACKAGE_MPD_AVAHI_SUPPORT · line 357
Quoted 10 lines
package/mpd/Config.in +8
-0depends on BR2_STATIC_LIBS +config BR2_PACKAGE_MPD_IO_URING + bool "io_uring" + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 + select BR2_PACKAGE_LIBURING + help + Asynchronous I/O using kernel io_uring subsystem + +comment "io_uring needs at least kernel version 5.1"
It's not a kernel version dependency but a toolchain kernel headers dependency.
Usually we use the following comment format:
"io_uring support needs a toolchain w/ headers >= 5.1"
Best regards,
Romain
Quoted 13 lines
package/mpd/Config.in +2
-0+ depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 + config BR2_PACKAGE_MPD_LIBMPDCLIENT bool "libmpdclient" select BR2_PACKAGE_LIBMPDCLIENTpackage/mpd/mpd.mk +0
-0@@ -119,6 +119,13 @@ else MPD_CONF_OPTS += -Did3tag=disabled endif
package/mpd/mpd.mk else · line 131
Quoted 10 lines
package/mpd/mpd.mk +7
-0+ifeq ($(BR2_PACKAGE_MPD_IO_URING),y) +MPD_DEPENDENCIES += liburing +MPD_CONF_OPTS += -Dio_uring=enabled +else +MPD_CONF_OPTS += -Dio_uring=disabled +endif + ifeq ($(BR2_PACKAGE_MPD_JACK2),y) MPD_DEPENDENCIES += jack2 MPD_CONF_OPTS += -Djack=enabled
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/1 package/mpd: add io_uring optional dependency
Since version 0.22 mpd provides an option to use the io_uring kernel interface for asynchronous access to local files. Buildroot has the necessary library (package/liburing) since commit 03ca6f4e39874583060317e7e15e9e360220877e.
Add an optional dependency on liburing to enable asynchronous file access using the kernel io_uring interface.
---
Changes v1 -> v2:
Commit message (Romain Naour)
Dependency comment (Romain Naour)
Modify patch description to match commit message
package/mpd/Config.in | 10 ++++++++++ package/mpd/mpd.mk | 7 +++++++ 2 files changed, 17 insertions(+)
package/mpd/Config.in +10 -0
@@ -347,6 +347,16 @@ config BR2_PACKAGE_MPD_AVAHI_SUPPORT comment "avahi support needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS +config BR2_PACKAGE_MPD_IO_URING + bool "io_uring" + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 + select BR2_PACKAGE_LIBURING + help + Asynchronous I/O using kernel io_uring subsystem + +comment "io_uring support needs a toolchain w/ headers >= 5.1" + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 + config BR2_PACKAGE_MPD_LIBMPDCLIENT bool "libmpdclient" select BR2_PACKAGE_LIBMPDCLIENT
package/mpd/mpd.mk +7 -0
@@ -119,6 +119,13 @@ else MPD_CONF_OPTS += -Did3tag=disabled endif +ifeq ($(BR2_PACKAGE_MPD_IO_URING),y) +MPD_DEPENDENCIES += liburing +MPD_CONF_OPTS += -Dio_uring=enabled +else +MPD_CONF_OPTS += -Dio_uring=disabled +endif + ifeq ($(BR2_PACKAGE_MPD_JACK2),y) MPD_DEPENDENCIES += jack2 MPD_CONF_OPTS += -Djack=enabled
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Arnout Vandecappelle
AppliedRe: [Buildroot] [PATCH v2 1/1] package/mpd: add io_uring optional dependency
Quoted 9 lines · Andreas Ziegler
Since version 0.22 mpd provides an option to use the
io_uringkernel interface for asynchronous access to local files. Buildroot has the necessary library (package/liburing) since commit03ca6f4e39874583060317e7e15e9e360220877e.Add an optional dependency on liburing to enable asynchronous file access using the kernel
io_uringinterface.Signed-off-by Andreas Ziegler <[email protected]>Reviewed-by Romain Naour <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 39 lines
---
Changes v1 -> v2:
Commit message (Romain Naour)
Dependency comment (Romain Naour)
Modify patch description to match commit messagepackage/mpd/Config.in | 10 ++++++++++ package/mpd/mpd.mk | 7 +++++++ 2 files changed, 17 insertions(+)package/mpd/Config.in +10
-0@@ -347,6 +347,16 @@ config BR2_PACKAGE_MPD_AVAHI_SUPPORT comment "avahi support needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS +config BR2_PACKAGE_MPD_IO_URING + bool "io_uring" + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 + select BR2_PACKAGE_LIBURING + help + Asynchronous I/O using kernel io_uring subsystem + +comment "io_uring support needs a toolchain w/ headers >= 5.1" + depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1 + config BR2_PACKAGE_MPD_LIBMPDCLIENT bool "libmpdclient" select BR2_PACKAGE_LIBMPDCLIENTpackage/mpd/mpd.mk +0
-0@@ -119,6 +119,13 @@ else MPD_CONF_OPTS += -Did3tag=disabled endif
package/mpd/mpd.mk else · line 131
Quoted 10 lines
package/mpd/mpd.mk +7
-0+ifeq ($(BR2_PACKAGE_MPD_IO_URING),y) +MPD_DEPENDENCIES += liburing +MPD_CONF_OPTS += -Dio_uring=enabled +else +MPD_CONF_OPTS += -Dio_uring=disabled +endif + ifeq ($(BR2_PACKAGE_MPD_JACK2),y) MPD_DEPENDENCIES += jack2 MPD_CONF_OPTS += -Djack=enabled
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot