[PATCH v2 0/2] rust: workqueue: remove HasWork::OFFSET

Tamir Duberstein posted 2 patches 10 months ago
There is a newer version of this series
rust/kernel/lib.rs       |  5 ++---
rust/kernel/rbtree.rs    | 23 ++++++++++-------------
rust/kernel/workqueue.rs | 45 ++++++++++++---------------------------------
3 files changed, 24 insertions(+), 49 deletions(-)
[PATCH v2 0/2] rust: workqueue: remove HasWork::OFFSET
Posted by Tamir Duberstein 10 months ago
The bulk of this change occurs in the later commits, please see their
messages for details. The first commit was developed in another series
not yet shared with the list but was picked into this series to allow
`HasWork::work_container_of` to return `container_of!` without the need
to cast from `*const Self` to `*mut Self`.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
---
Changes in v2:
- Rebase on rust-next.
- Add WORKQUEUE maintainers to cc.
- Link to v1: https://lore.kernel.org/r/20250307-no-offset-v1-0-0c728f63b69c@gmail.com

---
Tamir Duberstein (2):
      rust: retain pointer mut-ness in `container_of!`
      rust: workqueue: remove HasWork::OFFSET

 rust/kernel/lib.rs       |  5 ++---
 rust/kernel/rbtree.rs    | 23 ++++++++++-------------
 rust/kernel/workqueue.rs | 45 ++++++++++++---------------------------------
 3 files changed, 24 insertions(+), 49 deletions(-)
---
base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8
change-id: 20250307-no-offset-e463667a72fb

Best regards,
-- 
Tamir Duberstein <tamird@gmail.com>
Re: [PATCH v2 0/2] rust: workqueue: remove HasWork::OFFSET
Posted by Tamir Duberstein 10 months ago
On Wed, Apr 9, 2025 at 6:03 AM Tamir Duberstein <tamird@gmail.com> wrote:
>
> The bulk of this change occurs in the later commits, please see their
> messages for details. The first commit was developed in another series
> not yet shared with the list but was picked into this series to allow
> `HasWork::work_container_of` to return `container_of!` without the need
> to cast from `*const Self` to `*mut Self`.

That first commit has been extracted into its own series:
https://lore.kernel.org/all/20250409-container-of-mutness-v1-1-64f472b94534@gmail.com/.