Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | rust: sync: introduce `LockedBy` | Wedson Almeida Filho | 2023-04-22 | 1 | -0/+156 |
This allows us to have data protected by a lock despite not being wrapped by it. Access is granted by providing evidence that the lock is held by the caller. Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com> Signed-off-by: Wedson Almeida Filho <walmeida@microsoft.com> Reviewed-by: Benno Lossin <benno.lossin@proton.me> Link: https://lore.kernel.org/r/20230411054543.21278-13-wedsonaf@gmail.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org> |