Re: [PATCH] tools/virtio/virtio_test: advance next_reset by reset_n, not completed

From
sashiko-bot@kernel.org
Date
2026-11-05 07:51:10
Reply to
Gu Bin, 2026-11-05
run_test() arms the next device reset with

	while (completed > next_reset)
		next_reset += completed;

next_reset starts at reset_n, but each rearm advances the threshold by
the absolute completion count instead of the configured interval, so
the reset cadence stretches after every reset: with reset_n == 16 the
resets fire at completions 17, 34, 68, 136, ... instead of every 16
completions, and only a handful of resets happen over the whole run.

Advance next_reset by reset_n so resets stay evenly spaced, matching
the --reset=<n> option meaning.

Fixes: 264ee5aa81ec ("tools/virtio: Add --reset")
Signed-off-by: Gu Bin <redacted>
Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261105074741.2177-1-gubin@cmss.chinamobile.com?part=1
Thread (2 messages) 2 messages, 2 authors, last reply 10d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help