projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91e5add
)
blk-mq: remove unneeded needs_restart check
author
Miaohe Lin
<linmiaohe@huawei.com>
Mon, 5 Sep 2022 10:19:50 +0000
(18:19 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 5 Sep 2022 17:45:24 +0000
(11:45 -0600)
If code reaches here, needs_restart must be true. Remove this unneeded
needs_restart check. No functional change intended.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Link:
https://lore.kernel.org/r/20220905101950.4606-1-linmiaohe@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
patch
|
blob
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index 4b90d2d8cfb0279fc6a1929dc58304c3b10c5965..29bb48de5bda7b68ea4371770516c4e7565de142 100644
(file)
--- a/
block/blk-mq.c
+++ b/
block/blk-mq.c
@@
-1991,7
+1991,7
@@
out:
if (!needs_restart ||
(no_tag && list_empty_careful(&hctx->dispatch_wait.entry)))
blk_mq_run_hw_queue(hctx, true);
- else if (needs_res
tart && needs_res
ource)
+ else if (needs_resource)
blk_mq_delay_run_hw_queue(hctx, BLK_MQ_RESOURCE_DELAY);
blk_mq_update_dispatch_busy(hctx, true);