lib_log: safeguard barrier

This commit is contained in:
Thomas Schoebel-Theuer 2021-03-10 15:48:44 +01:00 committed by Thomas Schoebel-Theuer
parent 0e654cef63
commit 8050499e39
1 changed files with 1 additions and 0 deletions

View File

@ -490,6 +490,7 @@ bool log_finalize(struct log_status *logst, int len, void (*endio)(void *private
* the time of starting the transfer.
*/
offset = logst->validflag_offset;
barrier();
DATA_PUT(data, offset, (char)1);
nr_cb = cb_info->nr_cb++;