Message ID | dae42cd3c1c9f798a3c390e0a14ef77d02e94ce0.1615527324.git.brookxu@tencent.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | bfq: introduce bfq.ioprio for cgroup | expand |
diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c index ab4bc410e635..05054e1b5d97 100644 --- a/block/bfq-cgroup.c +++ b/block/bfq-cgroup.c @@ -1514,15 +1514,11 @@ void bfqg_and_blkg_put(struct bfq_group *bfqg) {} struct bfq_group *bfq_create_group_hierarchy(struct bfq_data *bfqd, int node) { struct bfq_group *bfqg; - int i; bfqg = kmalloc_node(sizeof(*bfqg), GFP_KERNEL | __GFP_ZERO, node); if (!bfqg) return NULL; - for (i = 0; i < BFQ_IOPRIO_CLASSES; i++) - bfqg->sched_data.service_tree[i] = BFQ_SERVICE_TREE_INIT; - return bfqg; } #endif /* CONFIG_BFQ_GROUP_IOSCHED */