mirror of
https://github.com/openharmony/third_party_liburing.git
synced 2026-07-20 22:58:41 -04:00
Copy defer task run definition from kernel
Copy the flag from upstream Signed-off-by: Dylan Yudaken <dylany@fb.com> Tested-by: Ammar Faizi <ammarfaizi2@gnuweeb.org> # Build Link: https://lore.kernel.org/r/20220905132258.1858915-2-dylany@fb.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
e594fe92f4
commit
8d4a96d044
@@ -157,6 +157,13 @@ enum {
|
||||
*/
|
||||
#define IORING_SETUP_SINGLE_ISSUER (1U << 12)
|
||||
|
||||
/*
|
||||
* Defer running task work to get events.
|
||||
* Rather than running bits of task work whenever the task transitions
|
||||
* try to do it just before it is needed.
|
||||
*/
|
||||
#define IORING_SETUP_DEFER_TASKRUN (1U << 13)
|
||||
|
||||
enum io_uring_op {
|
||||
IORING_OP_NOP,
|
||||
IORING_OP_READV,
|
||||
|
||||
Reference in New Issue
Block a user