Re: [PATCH] io_uring/rsrc: keep the old file when a file update fails
From: Jens Axboe
Date: Mon Nov 16 2026 - 21:49:31 EST
On Sun, 15 Nov 2026 20:45:31 -0800, Cheng Yongkang wrote:
> __io_sqe_files_update() resets the slot before it calls fget() on the
> new fd. If fget() fails, the fd is an io_uring file, or the node
> allocation fails, the update stops and reports that entry as not done,
> but the old file has already been removed. Later requests that use the
> slot fail with -EBADF, and if the old file was registered with a tag,
> its tag CQE is posted as if it had been removed on purpose.
>
> [...]
Applied, thanks!
[1/1] io_uring/rsrc: keep the old file when a file update fails
(no commit info)
Best regards,
--
Jens Axboe