diff options
author | Pavel Begunkov | 2020-04-12 02:05:04 +0300 |
---|---|---|
committer | Jens Axboe | 2020-04-12 08:46:49 -0600 |
commit | dea3b49c7fb09b4f6b6a574c0485ffeb9df7b69c (patch) | |
tree | a4b322afdb48024a49488237ede17e24d880737a /fs/ocfs2 | |
parent | 1d4240cc9e7bb101dac58f30283fa24a809f5606 (diff) |
io_uring: keep all sqe->flags in req->flags
It's a good idea to not read sqe->flags twice, as it's prone to security
bugs. Instead of passing it around, embeed them in req->flags. It's
already so except for IOSQE_IO_LINK.
1. rename former REQ_F_LINK -> REQ_F_LINK_HEAD
2. introduce and copy REQ_F_LINK, which mimics IO_IOSQE_LINK
And leave req_set_fail_links() using new REQ_F_LINK, because it's more
sensible.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/ocfs2')
0 files changed, 0 insertions, 0 deletions