RFC rust: sync: Introduce Rcu*Box
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest4 patches 0 repliesNew
- v13 patches 11 repliesSuperseded
Changes in v2 from the cover letter
* Rebased on 7.2-rc1
* As Alice pointed out [5], RcuFreeBox::with_rcu() should return a type that disallows extending the RCU read-side critical section to outlive the guard. As for now, no user needs with_rcu(), hence remove it.
* Includes a not-for-merge example based on Alice's patch.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | rust: rcu: Add RcuBox typerust/ rust/ rust/ | +284 | 0 replies | |
| 2/4 | rust: maple_tree: Add load_rcu()rust/ | +52 | 0 replies | |
| 3/4 | rust: rcu: Introduce RcuFreeBoxrust/ rust/ | +102 | 0 replies | |
| 4/4 | rust: poll: use kfree_rcu() for PollCondVarrust/ | +21 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [RFC PATCH v2 0/4] rust: sync: Introduce Rcu*Box
v1: https://lore.kernel.org/rust-for-linux/[email protected]/
Changes since v1:
* Rebased on 7.2-rc1
* As Alice pointed out [5], RcuFreeBox::with_rcu() should return a type that disallows extending the RCU read-side critical section to outlive the guard. As for now, no user needs with_rcu(), hence remove it.
* Includes a not-for-merge example based on Alice's patch.
v1's cover letter
-----------------
(this series is based on Alice's RFC [1] and discussion around Philipp's patches [2], [3])
As an easy way to provide RCU-protected allocation, two major types are provided:
- RcuBox<T, A>, inner T will be dropped and after a grace period.
Users: binder with maple_tree and dma_fence.
- RcuFreeBox<T, A>, inner T will be cleaned up immmediately and freed after a grace period. (Name suggestion is welcome). This is an attempt to consolidate Alice's PollCondVarBox [4] into a generic implementation, InPlaceInit support is still missing, but I want to get some feedback on the trait RcuFreeSafe.
[1]: https://lore.kernel.org/rust-for-linux/[email protected]/
[2]: https://lore.kernel.org/rust-for-linux/[email protected]/
[3]: https://lore.kernel.org/rust-for-linux/[email protected]/
[4]: https://lore.kernel.org/rust-for-linux/[email protected]/
[5]: https://lore.kernel.org/rust-for-linux/[email protected]/
Signature · 1 line
2.50.1 (Apple Git-155)