int i;
lockdep_assert_held(&blkg->q->queue_lock);
- lockdep_assert_held(&blkcg->blkg_array.xa_lock);
/* Something wrong if we are trying to remove same group twice */
WARN_ON_ONCE(list_empty(&blkg->q_node));
blkg->online = false;
- __xa_erase(&blkcg->blkg_array, blkg->q->id);
+ xa_erase(&blkcg->blkg_array, blkg->q->id);
list_del_init(&blkg->q_node);
/*
spin_lock_irq(&q->queue_lock);
list_for_each_entry_safe(blkg, n, &q->blkg_list, q_node) {
- struct blkcg *blkcg = blkg->blkcg;
-
- xa_lock(&blkcg->blkg_array);
blkg_destroy(blkg);
- xa_unlock(&blkcg->blkg_array);
}
q->root_blkg = NULL;
struct request_queue *q = blkg->q;
spin_lock_irq(&q->queue_lock);
- xa_lock(&blkcg->blkg_array);
blkg_destroy(blkg);
- xa_unlock(&blkcg->blkg_array);
spin_unlock_irq(&q->queue_lock);
}
}