io_uring: don't post tag CQEs on file/buffer registration failure
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 4 Apr 2025 14:46:34 +0000 (15:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Apr 2025 15:40:44 +0000 (09:40 -0600)
commitab6005f3912fff07330297aba08922d2456dcede
tree5319b37842e8ea5bb68c04cfacc0602273968fcb
parente48e99b6edf41c69c5528aa7ffb2daf3c59ee105
io_uring: don't post tag CQEs on file/buffer registration failure

Buffer / file table registration is all or nothing, if it fails all
resources we might have partially registered are dropped and the table
is killed. If that happens, it doesn't make sense to post any rsrc tag
CQEs. That would be confusing to the application, which should not need
to handle that case.

Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Fixes: 7029acd8a9503 ("io_uring/rsrc: get rid of per-ring io_rsrc_node list")
Link: https://lore.kernel.org/r/c514446a8dcb0197cddd5d4ba8f6511da081cf1f.1743777957.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c