io_uring: update kiocb->ki_pos at execution time
commit d34e1e5b upstream. 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> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
-
mentioned in commit 26b7575b
-
mentioned in commit 17799b8e
-
mentioned in commit 6c053081
-
mentioned in commit 35d84096
-
mentioned in commit 492e373b
-
mentioned in commit d4f70bf5
-
mentioned in commit 2ec049ba
-
mentioned in commit 9788bc72
-
mentioned in commit 335463eb
-
mentioned in commit 0813679e
-
mentioned in commit 84e34d2e
-
mentioned in commit fb0cece7
-
mentioned in commit fb0cece7
-
mentioned in commit c44e2886
-
mentioned in commit 15b9feff
-
mentioned in commit 2b56bee6
-
mentioned in commit 4f7ec742
-
mentioned in commit c5cc63e5
-
mentioned in commit b28a5779
-
mentioned in commit b28a5779
Please sign in to comment