Skip to content

Commit c6cd2e0

Browse files
committed
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: Peter Zijlstra (Intel) <[email protected]> Acked-by: Paul E. McKenney <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 628fd55 commit c6cd2e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/linux/percpu-refcount.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static inline bool __ref_is_percpu(struct percpu_ref *ref,
155155
* between contaminating the pointer value, meaning that
156156
* READ_ONCE() is required when fetching it.
157157
*
158-
* The smp_read_barrier_depends() implied by READ_ONCE() pairs
158+
* The dependency ordering from the READ_ONCE() pairs
159159
* with smp_store_release() in __percpu_ref_switch_to_percpu().
160160
*/
161161
percpu_ptr = READ_ONCE(ref->percpu_count_ptr);

include/linux/ptr_ring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static inline int __ptr_ring_produce(struct ptr_ring *r, void *ptr)
107107
return -ENOSPC;
108108

109109
/* Make sure the pointer we are storing points to a valid data. */
110-
/* Pairs with smp_read_barrier_depends in __ptr_ring_consume. */
110+
/* Pairs with the dependency ordering in __ptr_ring_consume. */
111111
smp_wmb();
112112

113113
WRITE_ONCE(r->queue[r->producer++], ptr);

0 commit comments

Comments
 (0)