You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix DramKV race: hold rlock during inplace update writes (#5807)
Summary:
Pull Request resolved: #5807
X-link: https://github.com/facebookresearch/FBGEMM/pull/2733
Previously the rlock was released after collecting hit/miss info, then block pointers were written to without the lock held. This allowed eviction to invalidate block pointers during writes. Fix by keeping the rlock held through the entire read-and-write phase using scoped lifetime.
Pull Request resolved: #5536
Test Plan:
Imported from GitHub, without a `Test Plan:` line.
Split from D95983752
Reviewed By: r-barnes
Differential Revision: D98427441
Pulled By: q10
fbshipit-source-id: f30a460b6b71c4963577135e742ef8c92c077105
0 commit comments