mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 05:13:18 +00:00
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>
This commit is contained in:
parent
86f8382e6d
commit
433d4b03e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user