aboutsummaryrefslogtreecommitdiff
path: root/fs/filesystems.c
diff options
context:
space:
mode:
authorPavel Begunkov2020-04-12 02:05:04 +0300
committerJens Axboe2020-04-12 08:46:49 -0600
commitdea3b49c7fb09b4f6b6a574c0485ffeb9df7b69c (patch)
treea4b322afdb48024a49488237ede17e24d880737a /fs/filesystems.c
parent1d4240cc9e7bb101dac58f30283fa24a809f5606 (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/filesystems.c')
0 files changed, 0 insertions, 0 deletions