[PATCH 0/2] optimise sqe-to-req flags
From: Pavel Begunkov
Date: Fri Jan 17 2020 - 17:42:24 EST
*lost the cover-letter, but here we go*
The main idea is to optimise code like the following by directly
copying sqe flags:
if (sqe_flags & IOSQE_IO_HARDLINK)
req->flags |= REQ_F_HARDLINK;
The first patch is a minor cleanup, and the second one do the
trick. No functional changes.
The other thing to consider is whether to use such flags as
REQ_F_LINK = IOSQE_IO_LINK, or directly use IOSQE_IO_LINK instead.
Pavel Begunkov (2):
io_uring: remove REQ_F_IO_DRAINED
io_uring: optimise sqe-to-req flags translation
fs/io_uring.c | 65 ++++++++++++++++++++++++---------------------------
1 file changed, 31 insertions(+), 34 deletions(-)
--
2.24.0