|
@@ -929,7 +929,7 @@ static int blk_mq_hctx_next_cpu(struct blk_mq_hw_ctx *hctx)
|
|
return WORK_CPU_UNBOUND;
|
|
return WORK_CPU_UNBOUND;
|
|
|
|
|
|
if (--hctx->next_cpu_batch <= 0) {
|
|
if (--hctx->next_cpu_batch <= 0) {
|
|
- int cpu = hctx->next_cpu, next_cpu;
|
|
|
|
|
|
+ int next_cpu;
|
|
|
|
|
|
next_cpu = cpumask_next(hctx->next_cpu, hctx->cpumask);
|
|
next_cpu = cpumask_next(hctx->next_cpu, hctx->cpumask);
|
|
if (next_cpu >= nr_cpu_ids)
|
|
if (next_cpu >= nr_cpu_ids)
|
|
@@ -937,8 +937,6 @@ static int blk_mq_hctx_next_cpu(struct blk_mq_hw_ctx *hctx)
|
|
|
|
|
|
hctx->next_cpu = next_cpu;
|
|
hctx->next_cpu = next_cpu;
|
|
hctx->next_cpu_batch = BLK_MQ_CPU_WORK_BATCH;
|
|
hctx->next_cpu_batch = BLK_MQ_CPU_WORK_BATCH;
|
|
-
|
|
|
|
- return cpu;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
return hctx->next_cpu;
|
|
return hctx->next_cpu;
|