read-after-write and read-after-read consistency #17422
dgiantsidi
started this conversation in
General
Replies: 1 comment
-
You are right. ZFS uses range locks to serialize conflicting VFS operations. |
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.
-
Hello,
I am wondering if ZFS serializes concurrent reads and writes from different threads such that a read is guaranteed to see the latest write even between multithreaded executions. I have the intuition that ZFS takes range locks on the files it touches based on the znode* (zfs_rangelock_enter_impl) and there is no per-thread caching. As such, concurrent operations on the same file are somehow serialized in a total order across threads.
Is my understanding correct?
Beta Was this translation helpful? Give feedback.
All reactions