commit | 6b47ee6ecab142f938a40bf3b297abac74218ee2 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Sat Jan 18 20:22:41 2020 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Jan 20 17:04:07 2020 -0700 |
tree | 5e64b3964c2651b7e52868409b93870fae8894f9 | |
parent | 87987898a1dbc69b1138f7c10eb9abd655c03396 [diff] |
io_uring: optimise sqe-to-req flags translation For each IOSQE_* flag there is a corresponding REQ_F_* flag. And there is a repetitive pattern of their translation: e.g. if (sqe->flags & SQE_FLAG*) req->flags |= REQ_F_FLAG* Use same numeric values/bits for them and copy instead of manual handling. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>