Skip to content

Commit

Permalink
block: bfq: Squashed update from BFQ-v7r5 to BFQ-v7r8
Browse files Browse the repository at this point in the history
Change-Id: I4c778f52a1b4d36adbefb0744399a7fde116deb3
  • Loading branch information
mikeNG authored and nilac8991 committed Oct 22, 2015
1 parent cc65581 commit 6499cbb
Show file tree
Hide file tree
Showing 4 changed files with 496 additions and 147 deletions.
6 changes: 6 additions & 0 deletions block/bfq-cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ static inline void bfq_group_init_entity(struct bfqio_cgroup *bgrp,
entity->new_weight = bfq_ioprio_to_weight(bgrp->ioprio);
entity->new_ioprio = bgrp->ioprio;
} else {
if (bgrp->weight < BFQ_MIN_WEIGHT ||
bgrp->weight > BFQ_MAX_WEIGHT) {
printk(KERN_CRIT "bfq_group_init_entity: "
"bgrp->weight %d\n", bgrp->weight);
BUG();
}
entity->new_weight = bgrp->weight;
entity->new_ioprio = bfq_weight_to_ioprio(bgrp->weight);
}
Expand Down
Loading

0 comments on commit 6499cbb

Please sign in to comment.