Skip to content

Commit 147adf9

Browse files
bvanasschekawasaki
authored andcommitted
tests/srp/rc: Rework use_blk_mq()
Prepare for adding an additional kernel module parameter. This patch does not change any functionality. Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
1 parent e0bb3dc commit 147adf9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • tests/srp

tests/srp/rc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ use_blk_mq() {
9191

9292
shift
9393
shift
94-
kmod_params=("$@")
94+
kmod_params=(
95+
indirect_sg_entries=2048
96+
"$@"
97+
)
9598

9699
(
97100
cd /sys/module/dm_mod/parameters || return $?
@@ -109,7 +112,7 @@ use_blk_mq() {
109112
log_out &&
110113
remove_mpath_devs &&
111114
stop_srp_ini &&
112-
start_srp_ini indirect_sg_entries=2048 "${kmod_params[@]}" &&
115+
start_srp_ini "${kmod_params[@]}" &&
113116
log_in
114117
}
115118

0 commit comments

Comments
 (0)