diff options
author | Alice Ryhl <aliceryhl@google.com> | 2023-08-28 13:48:06 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2023-09-25 22:46:42 +0300 |
commit | 115c95e9e14c482682080598907e6a18091fd0af (patch) | |
tree | 1628ae3751ab583e7b802f6b415430c37ddead7c /block/blk-ioprio.h | |
parent | 47f0dbe8fdc28e6e79505b640619e0cbccb91cef (diff) | |
download | linux-115c95e9e14c482682080598907e6a18091fd0af.tar.xz |
rust: workqueue: add `try_spawn` helper method
This adds a convenience method that lets you spawn a closure for
execution on a workqueue. This will be the most convenient way to use
workqueues, but it is fallible because it needs to allocate memory.
Co-developed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: "Andreas Hindborg (Samsung)" <nmi@metaspace.dk>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'block/blk-ioprio.h')
0 files changed, 0 insertions, 0 deletions