]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: ensure deferred timeouts copy necessary data
authorJens Axboe <axboe@kernel.dk>
Wed, 4 Dec 2019 18:08:05 +0000 (11:08 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Dec 2019 18:12:08 +0000 (11:12 -0700)
commit3f01a31ec78625c0c28bb85e0f960f0a60315808
treebaa1efa231b550a7ed82bcf966f6f2dbeb79fab6
parentd65c1eafb8296d5b1640174eff2f54e4f653f80e
io_uring: ensure deferred timeouts copy necessary data

If we defer a timeout, we should ensure that we copy the timespec
when we have consumed the sqe. This is similar to commit b22cd3ef4a9a
for read/write requests. We already did this correctly for timeouts
deferred as links, but do it generally and use the infrastructure added
by commit 9d64c61e6353 instead of having the timeout deferral use its
own.

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