Skip to content

Commit

Permalink
common/ublk: update io_uring setting during the tests
Browse files Browse the repository at this point in the history
Call the common functions _io_uring_enable/_io_uring_restore to ensure
that io_uring is enabled during ublk test runs.

Link: #153
Signed-off-by: Yi Zhang <[email protected]>
[Shin'ichiro: squashed the following fix into this commit]
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
  • Loading branch information
yizhanglinux authored and kawasaki committed Dec 20, 2024
1 parent b19924b commit e7c1732
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/ublk
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ _get_ublk_daemon_pid() {
}

_init_ublk() {
_io_uring_enable

_remove_ublk_devices > /dev/null 2>&1

modprobe -rq ublk_drv
Expand All @@ -45,4 +47,5 @@ _exit_ublk() {
_remove_ublk_devices
udevadm settle
modprobe -r -q ublk_drv
_io_uring_restore
}

0 comments on commit e7c1732

Please sign in to comment.