author: Sebastian Andrzej Siewior <bigeasy@linutronix.de> 2015-07-14 14:26:34 +0200
committer: Minda Chen <minda.chen@starfivetech.com> 2023-11-06 19:24:45 +0800
commit: 3e5ec0ec0f18a178efd530ebf7cd32bf87c793e5
parent: 6d328be681d9c9413fe99b5e78b9b8939ee506f7
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 3 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 652a31fc3bb3..0d9144ef5e5f 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1564,14 +1564,14 @@ static void __blk_mq_delay_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async,
return;
if (!async && !(hctx->flags & BLK_MQ_F_BLOCKING)) {
- int cpu = get_cpu();
+ int cpu = get_cpu_light();
if (cpumask_test_cpu(cpu, hctx->cpumask)) {
__blk_mq_run_hw_queue(hctx);
- put_cpu();
+ put_cpu_light();
return;
}
- put_cpu();
+ put_cpu_light();
}
kblockd_mod_delayed_work_on(blk_mq_hctx_next_cpu(hctx), &hctx->run_work,