About spa_sync() and zil_commit() execution synchronization #17810
Unanswered
dgiantsidi
asked this question in
Q&A
Replies: 1 comment
-
|
May be I miss something, but why do you think |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
In my understanding on the codebase, the
spa_sync()is not synchronized with thezil_commit(). Basically, that means that while thespa_sync()updates the newzil_headerthe tail of the ZIL can be written without blocking. As such, it is not guaranteed that thezil_headerwill always point to aHOLE, meaning that the entire ZIL (up to this point) has been trimmed.Edit: Actually I see that the
zil_syncthat updates the newzil_headeris synchronized with the updates on the zil withzl_lock.. However, my question still holds...Do we always know that
spa_sync()will point to azil_headerthat is aHOLE?Beta Was this translation helpful? Give feedback.
All reactions