kvfree_rcu: Update "monitor_todo" once a batch is started
authorUladzislau Rezki (Sony) <urezki@gmail.com>
Thu, 15 Apr 2021 17:19:59 +0000 (19:19 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 10 May 2021 23:00:48 +0000 (16:00 -0700)
commitdd28c9f057ad099f6221829053e48f331e6f0b7f
tree3dc124fadfdfc0dcc7f4a4dd5d71d2272cf614e1
parentd434c00fa3ac476ca6295b8310d097dd71984624
kvfree_rcu: Update "monitor_todo" once a batch is started

Before attempting to start a new batch the "monitor_todo" variable is
set to "false" and set back to "true" when a previous RCU batch is still
in progress.  This is at best confusing.

Thus change this variable to "false" only when a new batch has been
successfully queued, otherwise, just leave it be.

Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c