From cf45bfc0dc74f07209d52cf97119a01dec5fdc35 Mon Sep 17 00:00:00 2001 From: Brian M Date: Tue, 3 Mar 2026 11:26:38 -0800 Subject: [PATCH] iscsi-scst: Fix performance regression A recent change in iscsi_threads_pool_get changed 2 from being the minimum count to the maximum. Rectify. --- iscsi-scst/kernel/iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index dd3d49704..faa6bcc40 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -4108,7 +4108,7 @@ int iscsi_threads_pool_get(bool dedicated, const cpumask_t *cpu_mask, if (dedicated) { count = 1; } else if (!cpu_mask) { - count = blk_mq_num_online_queues(2); + count = max_t(int, blk_mq_num_online_queues(0), 2); } else { count = 0; for_each_cpu(i, cpu_mask)