Skip to content

SpinLockIrq for rust

Lyude Paul lkml rust-for-linux 12 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v19 Latest5 patches 1 replyIn review
  2. v185 patches 5 repliesSuperseded
  3. v1716 patches 29 repliesSuperseded
Earlier versions · 9
VersionPostedPatchesRepliesStatus
v1617 patches13 repliesSuperseded
v1516 patches0 repliesSuperseded
v1416 patches8 repliesSuperseded
v1317 patches28 repliesSuperseded
v1215 patches0 repliesSuperseded
v1114 patches1 replySuperseded
v10 RFC posting 2/214 patches20 repliesSuperseded
v10 RFC posting 1/20 of 14 patches1 replySuperseded
v99 patches18 repliesSuperseded

Patches in v19 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5rust: Introduce interrupt modulerust/helpers/helpers.c rust/helpers/interrupt.c rust/helpers/sync.c +2 more+114 -01 reply
2/5rust: helper: Add spin_{un,}lock_irq_{enable,disable}() helpersrust/helpers/spinlock.c+15 -00 replies
3/5rust: sync: use super::* in spinlock.rsrust/kernel/sync/lock/spinlock.rs+4 -50 replies
4/5rust: sync: Add SpinLockIrqrust/kernel/sync.rs rust/kernel/sync/lock/global.rs rust/kernel/sync/lock/spinlock.rs+254 -10 replies
5/5rust: sync: Introduce SpinLockIrq::lock_with() and friendsrust/kernel/sync/lock/spinlock.rs+80 -10 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchBenno LossinAndreas HindborgGary Guo
1/5R-b R-b R-b
2/5R-b R-b
3/5
4/5R-b
5/5R-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 3 reviewers.

Read the v19 thread

Cover letter [PATCH v19 0/5] SpinLockIrq for rust

This is the latest patch series for adding rust bindings for controlling local processor interrupts, adding support for spinlocks in rust that are acquired with local processor interrupts disabled, and implementing local interrupt controls through refcounting in the kernel.

The previous version of this patch series can be found here:

https://lore.kernel.org/all/[email protected]/

This patch series applies on top of boqun's rust-sync branch:

https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git/?h=rust-sync

Now that we've gotten the C-side of these changes in, this patch series is now exclusively concerned with the rust side of these changes. For more information on how we came to the design for the C side of the API, see the explanation in the previous version of the patch series.

Boqun Feng (1):
rust: helper: Add spin_{un,}lock_irq_{enable,disable}() helpers

Lyude Paul (4):
rust: Introduce interrupt module
rust: sync: use super::* in spinlock.rs
rust: sync: Add SpinLockIrq
rust: sync: Introduce SpinLockIrq::lock_with() and friends

FULL CHANGELOG FOR EACH PATCH AVAILABLE IN THE PATCH UNDER THE CUT LINE

 rust/helpers/helpers.c            |   1 +
 rust/helpers/interrupt.c          |  18 ++
 rust/helpers/spinlock.c           |  15 ++
 rust/helpers/sync.c               |   5 +
 rust/kernel/interrupt.rs          |  89 ++++++++
 rust/kernel/lib.rs                |   1 +
 rust/kernel/sync.rs               |   9 +-
 rust/kernel/sync/lock/global.rs   |   3 +
 rust/kernel/sync/lock/spinlock.rs | 331 +++++++++++++++++++++++++++++-
 9 files changed, 466 insertions(+), 6 deletions(-)
 create mode 100644 rust/helpers/interrupt.c
 create mode 100644 rust/kernel/interrupt.rs

base-commit: 4a653dbaf6f3a8c950a72e4b78e93576e1916381

Signature · 1 line
2.53.0