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:
Dylan Yudaken
2022-09-05 06:22:48 -07:00
committed by Jens Axboe
parent e594fe92f4
commit 8d4a96d044
+7
View File
@@ -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,