|
|
@@ -101,7 +101,7 @@ again:
|
|
|
* See perf_output_begin().
|
|
|
*/
|
|
|
smp_wmb(); /* B, matches C */
|
|
|
- rb->user_page->data_head = head;
|
|
|
+ WRITE_ONCE(rb->user_page->data_head, head);
|
|
|
|
|
|
/*
|
|
|
* We must publish the head before decrementing the nest count,
|
|
|
@@ -490,7 +490,7 @@ void perf_aux_output_end(struct perf_output_handle *handle, unsigned long size)
|
|
|
handle->aux_flags);
|
|
|
}
|
|
|
|
|
|
- rb->user_page->aux_head = rb->aux_head;
|
|
|
+ WRITE_ONCE(rb->user_page->aux_head, rb->aux_head);
|
|
|
if (rb_need_aux_wakeup(rb))
|
|
|
wakeup = true;
|
|
|
|
|
|
@@ -522,7 +522,7 @@ int perf_aux_output_skip(struct perf_output_handle *handle, unsigned long size)
|
|
|
|
|
|
rb->aux_head += size;
|
|
|
|
|
|
- rb->user_page->aux_head = rb->aux_head;
|
|
|
+ WRITE_ONCE(rb->user_page->aux_head, rb->aux_head);
|
|
|
if (rb_need_aux_wakeup(rb)) {
|
|
|
perf_output_wakeup(handle);
|
|
|
handle->wakeup = rb->aux_wakeup + rb->aux_watermark;
|