rcu/tree: Make debug_objects logic independent of rcu_head
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Mon, 25 May 2020 21:47:48 +0000 (23:47 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 29 Jun 2020 18:59:25 +0000 (11:59 -0700)
commit446044eb9c9c335d3ae1be4665193ab43ebb284e
treed92e4514b2cfce5456e26487996489421a23960b
parent594aa5975b9b5cfe9edaec06170e43b8c0607377
rcu/tree: Make debug_objects logic independent of rcu_head

kfree_rcu()'s debug_objects logic uses the address of the object's
embedded rcu_head to queue/unqueue. Instead of this, make use of the
object's address itself as preparation for future headless kfree_rcu()
support.

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