Message ID | b00453d6-e7b5-c079-dd08-385fbea6fd29@linux.alibaba.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/blk-throttle.c b/block/blk-throttle.c index a0bae2c..9c0b5ff 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c @@ -1959,6 +1959,15 @@ static bool throtl_tg_can_downgrade(struct throtl_grp *tg) unsigned long now = jiffies; /* + * If parent doesn't have low limit, only consider child's + * decision. + */ + if (!list_empty(&tg_to_blkg(tg)->blkcg->css.children) && + !tg->bps[READ][LIMIT_LOW] && !tg->bps[WRITE][LIMIT_LOW] && + !tg->iops[READ][LIMIT_LOW] && !tg->iops[WRITE][LIMIT_LOW]) + return true; + + /* * If cgroup is below low limit, consider downgrade and throttle other * cgroups */