diff options
| author | Filipe Xavier <[email protected]> | 2024-09-26 20:50:37 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-10-09 22:33:42 +0000 |
| commit | f4c2c90bb7b4ae1812dbaca15d9637eecaac2c9f (patch) | |
| tree | 6f8c4af627bd127e47ef15a4a980e2a49329e637 /rust/helpers/helpers.c | |
| parent | rust: std_vendor: update dbg macro from Rust upstream (diff) | |
| download | kernel-f4c2c90bb7b4ae1812dbaca15d9637eecaac2c9f.tar.gz kernel-f4c2c90bb7b4ae1812dbaca15d9637eecaac2c9f.zip | |
rust: lock: add trylock method support for lock backend
Add a non-blocking trylock method to lock backend interface, mutex and
spinlock implementations. It includes a C helper for spin_trylock.
Rust Binder will use this method together with the new shrinker
abstractions to avoid deadlocks in the memory shrinker.
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Filipe Xavier <[email protected]>
Reviewed-by: Fiona Behrens <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Link: https://lore.kernel.org/r/BL0PR02MB4914579914884B5D7473B3D6E96A2@BL0PR02MB4914.namprd02.prod.outlook.com
[ Slightly reworded. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
