-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io_uring: set completion results upfront
Signed-off-by: Jens Axboe <axboe@kernel.dk>
- Loading branch information
Jens Axboe
committed
Jul 25, 2022
1 parent
e27f928
commit de23077
Showing
2 changed files
with
22 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef IOU_CORE_H | ||
#define IOU_CORE_H | ||
|
||
#include <linux/errno.h> | ||
#include "io_uring_types.h" | ||
|
||
static inline void io_req_set_res(struct io_kiocb *req, s32 res, u32 cflags) | ||
{ | ||
req->cqe.res = res; | ||
req->cqe.flags = cflags; | ||
} | ||
|
||
#endif |