Commit c6cd2e01 authored by Will Deacon's avatar Will Deacon

include/linux: Remove smp_read_barrier_depends() from comments

smp_read_barrier_depends() doesn't exist any more, so reword the two
comments that mention it to refer to "dependency ordering" instead.
Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent 628fd556
...@@ -155,7 +155,7 @@ static inline bool __ref_is_percpu(struct percpu_ref *ref, ...@@ -155,7 +155,7 @@ static inline bool __ref_is_percpu(struct percpu_ref *ref,
* between contaminating the pointer value, meaning that * between contaminating the pointer value, meaning that
* READ_ONCE() is required when fetching it. * READ_ONCE() is required when fetching it.
* *
* The smp_read_barrier_depends() implied by READ_ONCE() pairs * The dependency ordering from the READ_ONCE() pairs
* with smp_store_release() in __percpu_ref_switch_to_percpu(). * with smp_store_release() in __percpu_ref_switch_to_percpu().
*/ */
percpu_ptr = READ_ONCE(ref->percpu_count_ptr); percpu_ptr = READ_ONCE(ref->percpu_count_ptr);
......
...@@ -107,7 +107,7 @@ static inline int __ptr_ring_produce(struct ptr_ring *r, void *ptr) ...@@ -107,7 +107,7 @@ static inline int __ptr_ring_produce(struct ptr_ring *r, void *ptr)
return -ENOSPC; return -ENOSPC;
/* Make sure the pointer we are storing points to a valid data. */ /* Make sure the pointer we are storing points to a valid data. */
/* Pairs with smp_read_barrier_depends in __ptr_ring_consume. */ /* Pairs with the dependency ordering in __ptr_ring_consume. */
smp_wmb(); smp_wmb();
WRITE_ONCE(r->queue[r->producer++], ptr); WRITE_ONCE(r->queue[r->producer++], ptr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment