]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: any deferred command must have stable sqe data
authorJens Axboe <axboe@kernel.dk>
Mon, 16 Dec 2019 18:55:28 +0000 (11:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Dec 2019 02:57:20 +0000 (19:57 -0700)
commitf402b5c6ba5f4483c48acdb5872ef4c122fafbed
tree7ff15ab48b1be79fea05cef6444c8cebd75b6fb1
parent5881eb388a846141880e1ecdeb1d6e3953ed4c41
io_uring: any deferred command must have stable sqe data

We're currently not retaining sqe data for accept, fsync, and
sync_file_range. None of these commands need data outside of what
is directly provided, hence it can't go stale when the request is
deferred. However, it can get reused, if an application reuses
SQE entries.

Ensure that we retain the information we need and only read the sqe
contents once, off the submission path. Most of this is just moving
code into a prep and finish function.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c