summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2026-09-10 07:18:10 -0600
committerJens Axboe <axboe@kernel.dk>2026-09-28 11:47:25 -0600
commitaa001b5a26602f3b8143a1d4fd024ab334352a58 (patch)
tree057886334377631eb5e49bfa1e126cc7d0d899a6 /rust/kernel/alloc/kvec/errors.rs
parentecc4c37627d043ab0925f4827e95b6f77b54c453 (diff)
io_uring: put request files before posting the completions
The batch flush posts the CQEs first and drops the files afterwards, with a plain fput() that defers the release to task_work. For the submitting task that runs on the way back to userspace, but with SQPOLL the sqpoll thread only gets to it after the io_uring task_work is done. Userspace sees the CQE in between, and closing the file and exec'ing it fails with ETXTBSY as the request still holds it. Drop the files synchronously before the CQEs are posted, for requests that the flush is about to free. Ring files stay deferred, releasing one takes its uring_lock and may wait on its requests. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions