summaryrefslogtreecommitdiff
path: root/mm/z3fold.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2020-12-10 03:54:41 +0300
committerPaul E. McKenney <paulmck@kernel.org>2021-01-05 00:35:15 +0300
commitd756c74e6f6e76e99f8bffcea57833816dd335b6 (patch)
tree788bd5fec332f1dddfbbaeb1278477661fc30f80 /mm/z3fold.c
parent9d3a04853fe640e0eba2c0799c880b7dcf190219 (diff)
downloadlinux-d756c74e6f6e76e99f8bffcea57833816dd335b6.tar.xz
doc: Update RCU requirements RCU_INIT_POINTER() description
Back in the day, RCU_INIT_POINTER() was the only way to avoid memory-barrier instructions while storing NULL to an RCU-protected pointer. Fortunately, in 2016, rcu_assign_pointer() started checking for compile-time NULL pointers and omitting the memory-barrier instructions in that case. Unfortunately, RCU's Requirements.rst document was not updated accordingly. This commit therefore at long last carries out that update. Fixes: 3a37f7275cda ("rcu: No ordering for rcu_assign_pointer() of NULL") Link: https://lore.kernel.org/lkml/20201209230755.GV7338@casper.infradead.org/ Reported-by: Matthew Wilcox <willy@infradead.org> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'mm/z3fold.c')
0 files changed, 0 insertions, 0 deletions