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 redundant check in bfq_put_cooperator

We have already avoided a circular list in bfq_setup_merge (see comments
in bfq_setup_merge() for details), so bfq_queue will not appear in it's
new_bfqq list. Just remove this check.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230116095153.3810101-7-shikemeng@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Kemeng Shi and committed by
Jens Axboe
433d4b03 86f8382e

-2
-2
block/bfq-iosched.c
··· 5429 5429 */ 5430 5430 __bfqq = bfqq->new_bfqq; 5431 5431 while (__bfqq) { 5432 - if (__bfqq == bfqq) 5433 - break; 5434 5432 next = __bfqq->new_bfqq; 5435 5433 bfq_put_queue(__bfqq); 5436 5434 __bfqq = next;