Commit 433d4b03 authored by Kemeng Shi's avatar Kemeng Shi Committed by Jens Axboe

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: default avatarKemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230116095153.3810101-7-shikemeng@huaweicloud.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 86f8382e
...@@ -5429,8 +5429,6 @@ void bfq_put_cooperator(struct bfq_queue *bfqq) ...@@ -5429,8 +5429,6 @@ void bfq_put_cooperator(struct bfq_queue *bfqq)
*/ */
__bfqq = bfqq->new_bfqq; __bfqq = bfqq->new_bfqq;
while (__bfqq) { while (__bfqq) {
if (__bfqq == bfqq)
break;
next = __bfqq->new_bfqq; next = __bfqq->new_bfqq;
bfq_put_queue(__bfqq); bfq_put_queue(__bfqq);
__bfqq = next; __bfqq = next;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment