block, bfq: remove useless checking in bfq_put_queue()
Subsystems (2)
PATCH 1/1 block, bfq: remove useless checking in bfq_put_queue()
From: George Ryurikov <[email protected]>
From: Yu Kuai <[email protected]>
commit 1e3cc2125d7cc7d492b2e6e52d09c1e17ba573c3
'bfqq->bfqd' is ensured to set in bfq_init_queue(), and it will never change afterwards.
--- block/bfq-iosched.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
block/bfq-iosched.c +2 -4
@@ -4864,9 +4864,7 @@ void bfq_put_queue(struct bfq_queue *bfqq)struct hlist_node *n;struct bfq_group *bfqg =bfqq_group (bfqq); -if (bfqq->bfqd) -bfq_log_bfqq (bfqq->bfqd, bfqq,"put_queue: %p %d" , - bfqq, bfqq->ref); +bfq_log_bfqq (bfqq->bfqd, bfqq,"put_queue: %p %d" , bfqq, bfqq->ref); bfqq->ref--;if (bfqq->ref)
@@ -4931,7 +4929,7 @@ void bfq_put_queue(struct bfq_queue *bfqq)hlist_del_init (&item->woken_list_node); } -if (bfqq->bfqd && bfqq->bfqd->last_completed_rq_bfqq == bfqq) +if (bfqq->bfqd->last_completed_rq_bfqq == bfqq) bfqq->bfqd->last_completed_rq_bfqq =NULL ;kmem_cache_free (bfq_pool, bfqq);
--
2.34.1
Заявление о конфиденциальности
Данное электронное письмо и любые приложения к нему являются конфиденциальными и предназначены исключительно для адресата. Если Вы не являетесь адресатом данного письма, пожалуйста, уведомите немедленно отправителя, не раскрывайте содержание другим лицам, не используйте его в каких-либо целях, не храните и не копируйте информацию любым способом.
Jens Axboe
maintainerQuoted 8 lines · George Rurikov
From: George Ryurikov <[email protected]>
From: Yu Kuai <[email protected]>
commit
1e3cc2125d7cc7d492b2e6e52d09c1e17ba573c3'
bfqq->bfqd' is ensured to set inbfq_init_queue(), and it will never change afterwards.
No point pushing this to stable, so no from here.
Signature · 1 line
Jens Axboe
Hi,
Quoted 12 lines · Jens Axboe
Quoted 8 lines · George Rurikov
From: George Ryurikov <[email protected]>
From: Yu Kuai <[email protected]>
commit
1e3cc2125d7cc7d492b2e6e52d09c1e17ba573c3'
bfqq->bfqd' is ensured to set inbfq_init_queue(), and it will never change afterwards.No point pushing this to stable, so no from here.
Yes, and there are no follow up fixes as well.
Thanks,
Kuai
kernel test robot
build botFYI: kernel test robot notices the stable kernel rule is not satisfied.
Hi,
Thanks for your patch.
FYI: kernel test robot notices the stable kernel rule is not satisfied.
The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-3
Rule: The upstream commit ID must be specified with a separate line above the commit text.
Subject: [PATCH 5.10] block, bfq: remove useless checking in bfq_put_queue()
Please ignore this mail if the patch is not relevant for upstream.
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki