diff options
author | Frederic Weisbecker <frederic@kernel.org> | 2021-11-23 01:37:04 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-12-09 11:34:30 -0800 |
commit | 8d9703964697340e073305574de4f5df31a28ba9 (patch) | |
tree | 333f77ce10c57a1f9e6bcf4040bb2e48bc3617ff /COPYING | |
parent | 2ebc45c44c4f3cc4c757430b2409ece4f976892e (diff) | |
download | lwn-8d9703964697340e073305574de4f5df31a28ba9.tar.gz lwn-8d9703964697340e073305574de4f5df31a28ba9.zip |
rcu/nocb: Prepare nocb_cb_wait() to start with a non-offloaded rdp
In order to be able to toggle the offloaded state from cpusets, a nocb
kthread will need to be created for all possible CPUs whenever either
of the "rcu_nocbs=" or "nohz_full=" parameters are specified.
Therefore, the nocb_cb_wait() kthread must be prepared to start running
on a de-offloaded rdp. To accomplish this, simply move the sleeping
condition to the beginning of the nocb_cb_wait() function, which prevents
this kthread from attempting to invoke callbacks before the corresponding
CPU is offloaded.
Reviewed-by: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Uladzislau Rezki <urezki@gmail.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Joel Fernandes <joel@joelfernandes.org>
Tested-by: Juri Lelli <juri.lelli@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions