]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use original request task for inflight tracking
authorJens Axboe <axboe@kernel.dk>
Thu, 23 Jun 2022 17:06:43 +0000 (11:06 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Jun 2022 17:06:43 +0000 (11:06 -0600)
commit8de3e7ffe7661c8ca92be6ad9d768a11afbaf67f
treedcd043471434015e5286040a3c1151976a5755a3
parent844f1318eb6a9147fa9d11fe3ea3fe40ded0a961
io_uring: use original request task for inflight tracking

In prior kernels, we did file assignment always at prep time. This meant
that req->task == current. But after deferring that assignment and then
pushing the inflight tracking back in, we've got the inflight tracking
using current when it should in fact now be using req->task.

Fixup that error introduced by adding the inflight tracking back after
file assignments got modifed.

Fixes: 7d6e647a466a ("io_uring: reinstate the inflight tracking")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c