File tree Expand file tree Collapse file tree 3 files changed +12
-27
lines changed
.github/workflows/scripts
tests/zfs-tests/tests/functional Expand file tree Collapse file tree 3 files changed +12
-27
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,13 @@ case "$1" in
93
93
;;
94
94
esac
95
95
96
+ # enable io_uring on el9/el10
97
+ case " $1 " in
98
+ almalinux9|almalinux10)
99
+ sudo sysctl kernel.io_uring_disabled=0 > /dev/null
100
+ ;;
101
+ esac
102
+
96
103
# run functional testings and save exitcode
97
104
cd /var/tmp
98
105
TAGS=$2 /$3
Original file line number Diff line number Diff line change @@ -65,26 +65,11 @@ fio_async_ioengines="posixaio"
65
65
if is_linux; then
66
66
fio_async_ioengines+=" libaio"
67
67
if $( grep -q " CONFIG_IO_URING=y" /boot/config-$( uname -r) ) ; then
68
- if [ -e /etc/os-release ] ; then
69
- source /etc/os-release
70
- if [ $PLATFORM_ID = " platform:el9" ] ; then
71
- log_note " io_uring disabled on RHEL 9 " \
72
- " variants: fails with " \
73
- " 'Operation not permitted'"
74
- elif $( check_fio_ioengine -eq 0) ; then
75
- fio_async_ioengines+=" io_uring"
76
- else
77
- log_note " io_uring not supported by fio and " \
78
- " will not be tested"
79
- fi
80
- else
81
- if $( check_fio_ioengine) ; then
82
- fio_async_ioengines+=" io_uring"
83
-
84
- else
85
- log_note " io_uring not supported by fio and " \
86
- " will not be tested"
87
- fi
68
+ if $( check_fio_ioengine) ; then
69
+ fio_async_ioengines+=" io_uring"
70
+ else
71
+ log_note " io_uring not supported by fio and " \
72
+ " will not be tested"
88
73
fi
89
74
else
90
75
log_note " io_uring not supported by kernel will not " \
Original file line number Diff line number Diff line change @@ -45,13 +45,6 @@ if ! $(grep -q "CONFIG_IO_URING=y" /boot/config-$(uname -r)); then
45
45
log_unsupported " Requires io_uring support within Kernel"
46
46
fi
47
47
48
- if [ -e /etc/os-release ] ; then
49
- source /etc/os-release
50
- if [ $PLATFORM_ID = " platform:el9" ]; then
51
- log_unsupported " Disabled on RHEL 9 variants: fails with 'Operation not permitted'"
52
- fi
53
- fi
54
-
55
48
fio --ioengine=io_uring --parse-only || log_unsupported " fio io_uring support required"
56
49
57
50
function cleanup
You can’t perform that action at this time.
0 commit comments