|
@@ -322,9 +322,9 @@ the following write-side code fragment:
|
|
|
And the xlog_valid_lsn() function in fs/xfs/xfs_log_priv.h contains
|
|
|
the corresponding read-side code fragment:
|
|
|
|
|
|
- cur_cycle = ACCESS_ONCE(log->l_curr_cycle);
|
|
|
+ cur_cycle = READ_ONCE(log->l_curr_cycle);
|
|
|
smp_rmb();
|
|
|
- cur_block = ACCESS_ONCE(log->l_curr_block);
|
|
|
+ cur_block = READ_ONCE(log->l_curr_block);
|
|
|
|
|
|
Alternatively, consider the following comment in function
|
|
|
perf_output_put_handle() in kernel/events/ring_buffer.c:
|