]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block, bfq: remove local variable 'split' in bfq_init_rq()
authorYu Kuai <yukuai3@huawei.com>
Mon, 9 Sep 2024 13:41:52 +0000 (21:41 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Sep 2024 22:32:09 +0000 (16:32 -0600)
commite61e002a67da9ec36571af743c94a968cf1ce116
treee129debcce8183a829eb28a8e72a1fded80683fa
parent553a606c25f8ff5c518c7fcf488dd4dd5fbb4795
block, bfq: remove local variable 'split' in bfq_init_rq()

The local variable is used to call bfq_bfqq_resume_state() later,
since 'bfqd->lock' is held, and bfqq status will not change between
setting 'split' and calling bfq_bfqq_resume_state(), move forward
bfq_bfqq_resume_state() so that 'split' can be removed. There are no
functional chagnes.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20240909134154.954924-6-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c