On Wed, Dec 9, 2020 at 3:01 PM Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote: > > rcu_assign_pointer() itself already does the optimization for the case > of a constant NULL pointer assignment. > > So there's no need to manually change things to RCU_INIT_POINTER(). Side note: what should be done instead is to delete the stale comment. It should have been removed back when the optimization was done in 2016 - see commit 3a37f7275cda ("rcu: No ordering for rcu_assign_pointer() of NULL") Linus