diff options
| author | 2022-02-22 02:55:02 -0800 | |
|---|---|---|
| committer | 2022-03-10 06:32:49 -0700 | |
| commit | d34e1e5b396a0dbaa4a29b7138df662cfb9d8e8e (patch) | |
| tree | 526b2e676b92677d4667ca67e182e1442183d30c /include/uapi/linux | |
| parent | io_uring: remove duplicated calls to io_kiocb_ppos (diff) | |
| download | linux-dev-d34e1e5b396a0dbaa4a29b7138df662cfb9d8e8e.tar.xz linux-dev-d34e1e5b396a0dbaa4a29b7138df662cfb9d8e8e.zip | |
io_uring: update kiocb->ki_pos at execution time
Update kiocb->ki_pos at execution time rather than in io_prep_rw().
io_prep_rw() happens before the job is enqueued to a worker and so the
offset might be read multiple times before being executed once.
Ensures that the file position in a set of _linked_ SQEs will be only
obtained after earlier SQEs have completed, and so will include their
incremented file position.
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
