2017-11-09 19:56:59

by Todd Kjos

[permalink] [raw]
Subject: Re: [PATCH 1/2] sched: force update of blocked load of idle cpus

> @@ -8683,6 +8692,10 @@ static void nohz_balancer_kick(void)
>
> if (test_and_set_bit(NOHZ_BALANCE_KICK, nohz_flags(ilb_cpu)))
> return;
> +
> + if (only_update)
> + set_bit(NOHZ_STATS_KICK, nohz_flags(ilb_cpu));

Should there be an "else clear_bit(NOHZ_STATS_KICK, nohz_flags(ilb_cpu));" ?

Seems like any time this is called as !only_update, we should stop
inhibiting rebalance. In fact, we should perhaps go a little further
so that an only_update never inhibits rebalance from a concurrent
!only_update.

From 1582141822627669982@xxx Tue Oct 24 12:27:01 +0000 2017
X-GM-THRID: 1582141822627669982
X-Gmail-Labels: Inbox,Category Forums