lib_log: safeguard suspected coherence problems 2

This commit is contained in:
Thomas Schoebel-Theuer 2022-08-23 11:50:37 +02:00
parent 5c8ed6164f
commit 34013933f0
1 changed files with 4 additions and 0 deletions

View File

@ -720,6 +720,8 @@ int _check_crc(struct log_header *lh,
check_flags, crc_len);
check_flags |= usable_digest_mask;
cond_resched();
/* safeguard any suspected coherence problems */
smp_mb();
goto retry;
}
/* when simple retry failed: try the painful iterative method */
@ -747,6 +749,8 @@ int _check_crc(struct log_header *lh,
goto failed;
did_iterative_retry++;
cond_resched();
/* safeguard any suspected coherence problems */
smp_mb();
goto retry;
failed:
MARS_WRN("ITERATIVE RETRY %d failed\n",