aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-12-19 14:44:26 -0700
committerJens Axboe <axboe@kernel.dk>2019-12-20 10:04:22 -0700
commit06b76d44ba25e52711dc7cc4fc75b50907bc6b8e (patch)
tree105eebc6a575f6372402598dab9ca50a47e59ddd /fs/gfs2
parentio_uring: read 'count' for IORING_OP_TIMEOUT in prep handler (diff)
downloadlinux-dev-06b76d44ba25e52711dc7cc4fc75b50907bc6b8e.tar.xz
linux-dev-06b76d44ba25e52711dc7cc4fc75b50907bc6b8e.zip
io_uring: standardize the prep methods
We currently have a mix of use cases. Most of the newer ones are pretty uniform, but we have some older ones that use different calling calling conventions. This is confusing. For the opcodes that currently rely on the req->io->sqe copy saving them from reuse, add a request type struct in the io_kiocb command union to store the data they need. Prepare for all opcodes having a standard prep method, so we can call it in a uniform fashion and outside of the opcode handler. This is in preparation for passing in the 'sqe' pointer, rather than storing it in the io_kiocb. Once we have uniform prep handlers, we can leave all the prep work to that part, and not even pass in the sqe to the opcode handler. This ensures that we don't reuse sqe data inadvertently. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/gfs2')
0 files changed, 0 insertions, 0 deletions