Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block, bfq: remove unnecessary dereference to get async_bfqq

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>

authored by

Kemeng Shi and committed by
Jens Axboe
86f8382e 8ac2e43c

+1 -1
+1 -1
block/bfq-iosched.c
··· 4989 4989 icq_to_bic(async_bfqq->next_rq->elv.icq) == bfqq->bic && 4990 4990 bfq_serv_to_charge(async_bfqq->next_rq, async_bfqq) <= 4991 4991 bfq_bfqq_budget_left(async_bfqq)) 4992 - bfqq = bfqq->bic->bfqq[0][act_idx]; 4992 + bfqq = async_bfqq; 4993 4993 else if (bfqq->waker_bfqq && 4994 4994 bfq_bfqq_busy(bfqq->waker_bfqq) && 4995 4995 bfqq->waker_bfqq->next_rq &&