hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/block/bfq-cgroup.c
....@@ -705,15 +705,15 @@
705705 struct bfq_io_cq *bic,
706706 struct bfq_group *bfqg)
707707 {
708
- struct bfq_queue *async_bfqq = bic_to_bfqq(bic, 0);
709
- struct bfq_queue *sync_bfqq = bic_to_bfqq(bic, 1);
708
+ struct bfq_queue *async_bfqq = bic_to_bfqq(bic, false);
709
+ struct bfq_queue *sync_bfqq = bic_to_bfqq(bic, true);
710710 struct bfq_entity *entity;
711711
712712 if (async_bfqq) {
713713 entity = &async_bfqq->entity;
714714
715715 if (entity->sched_data != &bfqg->sched_data) {
716
- bic_set_bfqq(bic, NULL, 0);
716
+ bic_set_bfqq(bic, NULL, false);
717717 bfq_release_process_ref(bfqd, async_bfqq);
718718 }
719719 }
....@@ -748,8 +748,8 @@
748748 * request from the old cgroup.
749749 */
750750 bfq_put_cooperator(sync_bfqq);
751
+ bic_set_bfqq(bic, NULL, true);
751752 bfq_release_process_ref(bfqd, sync_bfqq);
752
- bic_set_bfqq(bic, NULL, 1);
753753 }
754754 }
755755 }