Update thread safety markers
Status from this message: Applied to `rust-next` -- thanks everyone (and Alice for taking the
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest4 patches 1 replyApplied
- v24 patches 12 repliesSuperseded
Changes in v3 from the cover letter
* Removed "for example" as suggested in [2].
* Added Reviewed-by annotations from v2 review.
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | rust: sync: reword the `Arc` safety comment for `Send`rust/ | +2 | 0 replies | |
| 2/4 | rust: sync: reword the `Arc` safety comment for `Sync`rust/ | +5 | 0 replies | |
| 3/4 | rust: specify when `ARef` is thread saferust/ | +13 | 0 replies | |
| 4/4 | rust: task: add `Send` marker to `Task`rust/ | +8 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Andreas Hindborg | Boqun Feng | Gary Guo | Martin Rodriguez Reboredo | Benno Lossin |
|---|---|---|---|---|---|
| 1/4 | R-b | R-b | R-b | R-b | R-b |
| 2/4 | R-b | R-b | R-b | R-b | |
| 3/4 | R-b | R-b | R-b | R-b | |
| 4/4 | R-b | R-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH v3 0/4] Update thread safety markers
In Rust, the Send and Sync traits are used to mark in what ways a specific type is thread safe. In this patch series, I add some missing thread safety markers and improve the documentation related to them. This change will let you compile some code that would currently fail to compile even though it doesn't actually violate any thread safety rules.
You can find a definition of what these marker traits mean at [1].
Changes since v2:
* Removed "for example" as suggested in [2].
* Added Reviewed-by annotations from v2 review.
[1]: https://stackoverflow.com/a/68708557/1704411
[2]: https://lore.kernel.org/all/[email protected]/
Alice Ryhl (4):
rust: sync: reword the Arc safety comment for Send
rust: sync: reword the Arc safety comment for Sync
rust: specify when ARef is thread safe
rust: task: add Send marker to Task
rust/kernel/sync/arc.rs | 12 +++++++----- rust/kernel/task.rs | 10 ++++++++-- rust/kernel/types.rs | 13 +++++++++++++ 3 files changed, 28 insertions(+), 7 deletions(-)
base-commit: ac9a78681b921877518763ba0e89202254349d1b
Signature · 1 line
2.41.0.rc0.172.g3f132b7071-goog