public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH blktests] block/038: cap submit_queues to min(4, nproc) to fix failure on low CPU machines
@ 2026-04-07  8:36 gomid4497
  0 siblings, 0 replies; only message in thread
From: gomid4497 @ 2026-04-07  8:36 UTC (permalink / raw)
  To: linux-block, osandov; +Cc: xiliang, gomid4497

Signed-off-by: gomid4497 <rakeshw728@gmail.com>
---
 tests/block/038 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/block/038 b/tests/block/038
index 56272be..5cbbd07 100755
--- a/tests/block/038
+++ b/tests/block/038
@@ -28,9 +28,10 @@ null_blk_power_loop() {
 
 null_blk_submit_queues_loop() {
 	local nullb="$1"
+	local queues=$(( $(nproc) < 4 ? $(nproc) : 4 ))
 	for ((i = 1; i <= 200; i++)); do
 		echo 1 > "/sys/kernel/config/nullb/${nullb}/submit_queues"
-		echo 4 > "/sys/kernel/config/nullb/${nullb}/submit_queues"
+		echo ${queues} > "/sys/kernel/config/nullb/${nullb}/submit_queues"
 	done
 }
 
-- 
2.50.1 (Apple Git-155)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-07  8:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07  8:36 [PATCH blktests] block/038: cap submit_queues to min(4, nproc) to fix failure on low CPU machines gomid4497

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox