Linus Torvalds writes: (Summary)
You'd have to serialize the actual measurement with the "read
generation count", but that should be as simple as just doing a
smp_rmb() between the "read generation count" and "do measurement on
file contents".
file contents".
Of course, if you do something more complex in invalidation, you may end up needing a real lock.
end up needing a real lock.
Linus
Linus
Linus
file contents".
Of course, if you do something more complex in invalidation, you may end up needing a real lock.
end up needing a real lock.
Linus
Linus
Linus