projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ac2e43
)
block, bfq: remove unnecessary dereference to get async_bfqq
author
Kemeng Shi
<shikemeng@huaweicloud.com>
Mon, 16 Jan 2023 09:51:50 +0000
(17:51 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 30 Jan 2023 03:03:49 +0000
(20:03 -0700)
The async_bfqq is assigned with bfqq->bic->bfqq[0], use it directly.
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link:
https://lore.kernel.org/r/20230116095153.3810101-6-shikemeng@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c
patch
|
blob
|
history
diff --git
a/block/bfq-iosched.c
b/block/bfq-iosched.c
index 6f38a01300347ca9224a53df0660ca61e5266a35..4a17b22327f1dfd613b2fcb32bca0d557fa776bd 100644
(file)
--- a/
block/bfq-iosched.c
+++ b/
block/bfq-iosched.c
@@
-4989,7
+4989,7
@@
check_queue:
icq_to_bic(async_bfqq->next_rq->elv.icq) == bfqq->bic &&
bfq_serv_to_charge(async_bfqq->next_rq, async_bfqq) <=
bfq_bfqq_budget_left(async_bfqq))
- bfqq =
bfqq->bic->bfqq[0][act_idx]
;
+ bfqq =
async_bfqq
;
else if (bfqq->waker_bfqq &&
bfq_bfqq_busy(bfqq->waker_bfqq) &&
bfqq->waker_bfqq->next_rq &&