diff --git a/core/storage/pager.rs b/core/storage/pager.rs index c4c4df620..0b85be394 100644 --- a/core/storage/pager.rs +++ b/core/storage/pager.rs @@ -168,6 +168,11 @@ pub struct Page { pub inner: UnsafeCell, } +// SAFETY: Page is thread-safe because we use atomic page flags to serialize +// concurrent modifications. +unsafe impl Send for Page {} +unsafe impl Sync for Page {} + // Concurrency control of pages will be handled by the pager, we won't wrap Page with RwLock // because that is bad bad. pub type PageRef = Arc;