diff options
author | Kemeng Shi <shikemeng@huaweicloud.com> | 2023-01-16 17:51:51 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-01-29 20:03:49 -0700 |
commit | 433d4b03e722bdfb1b6a75563cb45e8dca6784e7 (patch) | |
tree | 31c7a9bb34ba25e3b09e89f263c360da2a4f97f8 /block/bfq-iosched.c | |
parent | 86f8382e6d3a74f783c23a3d773285e2637b8bc2 (diff) |
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>
Diffstat (limited to 'block/bfq-iosched.c')
-rw-r--r-- | block/bfq-iosched.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index 4a17b22327f1..dbee5c61830c 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -5429,8 +5429,6 @@ void bfq_put_cooperator(struct bfq_queue *bfqq) */ __bfqq = bfqq->new_bfqq; while (__bfqq) { - if (__bfqq == bfqq) - break; next = __bfqq->new_bfqq; bfq_put_queue(__bfqq); __bfqq = next; |