Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43ada787 authored by Liu Bo's avatar Liu Bo Committed by Jens Axboe
Browse files

Block: blk-throttle: set low_valid immediately once one cgroup has io.low configured



Once one cgroup has io.low configured, @low_valid becomes true and other
cgroups won't switch it back whatsoever.

Signed-off-by: default avatarLiu Bo <bo.liu@linux.alibaba.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e1a41324
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -579,8 +579,10 @@ static void blk_throtl_update_limit_valid(struct throtl_data *td)
		struct throtl_grp *tg = blkg_to_tg(blkg);

		if (tg->bps[READ][LIMIT_LOW] || tg->bps[WRITE][LIMIT_LOW] ||
		    tg->iops[READ][LIMIT_LOW] || tg->iops[WRITE][LIMIT_LOW])
		    tg->iops[READ][LIMIT_LOW] || tg->iops[WRITE][LIMIT_LOW]) {
			low_valid = true;
			break;
		}
	}
	rcu_read_unlock();