Skip to content

Commit 8abef10

Browse files
committed
bfq-iosched: don't call bfqg_and_blkg_put for !CONFIG_BFQ_GROUP_IOSCHED
It's not available if we don't have group io scheduling set, and there's no need to call it. Fixes: 0d52af5 ("block, bfq: release oom-queue ref to root group on exit") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3609c47 commit 8abef10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/bfq-iosched.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4893,10 +4893,10 @@ static void bfq_exit_queue(struct elevator_queue *e)
48934893

48944894
hrtimer_cancel(&bfqd->idle_slice_timer);
48954895

4896+
#ifdef CONFIG_BFQ_GROUP_IOSCHED
48964897
/* release oom-queue reference to root group */
48974898
bfqg_and_blkg_put(bfqd->root_group);
48984899

4899-
#ifdef CONFIG_BFQ_GROUP_IOSCHED
49004900
blkcg_deactivate_policy(bfqd->queue, &blkcg_policy_bfq);
49014901
#else
49024902
spin_lock_irq(&bfqd->lock);

0 commit comments

Comments
 (0)