Skip to content

Commit

Permalink
ZTS: Fix io_uring support check
Browse files Browse the repository at this point in the history
Not all Linux distribution kernels enable io_uring support by
default.  Update the run time check to verify that the booted
kernel was built with CONFIG_IO_URING=y.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Co-authored-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#13648
Closes openzfs#13685
  • Loading branch information
behlendorf authored and andrewc12 committed Sep 23, 2022
1 parent 2e0fccc commit f7e8971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/zfs-tests/tests/functional/io/io_uring.ksh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
verify_runnable "global"


if [[ $(linux_version) -lt $(linux_version "5.1") ]]; then
if ! $(grep -q "CONFIG_IO_URING=y" /boot/config-$(uname -r)); then
log_unsupported "Requires io_uring support"
fi

Expand Down

0 comments on commit f7e8971

Please sign in to comment.