Skip to content

Commit cf45bfc

Browse files
committed
iscsi-scst: Fix performance regression
A recent change in iscsi_threads_pool_get changed 2 from being the minimum count to the maximum. Rectify.
1 parent 84a23a2 commit cf45bfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

iscsi-scst/kernel/iscsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4108,7 +4108,7 @@ int iscsi_threads_pool_get(bool dedicated, const cpumask_t *cpu_mask,
41084108
if (dedicated) {
41094109
count = 1;
41104110
} else if (!cpu_mask) {
4111-
count = blk_mq_num_online_queues(2);
4111+
count = max_t(int, blk_mq_num_online_queues(0), 2);
41124112
} else {
41134113
count = 0;
41144114
for_each_cpu(i, cpu_mask)

0 commit comments

Comments
 (0)