io_uring/af_unix: defer registered files gc to io_uring release
Instead of putting io_uring's registered files in unix_gc() we want it to be done by io_uring itself. The trick here is to consider io_uring registered files for cycle detection but not actually putting them down. Because io_uring can't register other ring instances, this will remove all refs to the ring file triggering the ->release path and clean up with io_ring_ctx_free(). Cc: stable@vger.kernel.org Fixes: 6b06314c ("io_uring: add file set registration") Reported-and-tested-by:David Bouman <dbouman03@gmail.com> Signed-off-by:
Pavel Begunkov <asml.silence@gmail.com> Signed-off-by:
Thadeu Lima de Souza Cascardo <cascardo@canonical.com> [axboe: add kerneldoc comment to skb, fold in skb leak fix] Signed-off-by:
Jens Axboe <axboe@kernel.dk>
-
mentioned in commit e48aae69
-
mentioned in commit 5d02f7cd
-
mentioned in commit 836570b5
-
mentioned in commit 8d63a4b0
-
mentioned in commit d9549e2a
-
mentioned in commit 00b5b928
-
mentioned in commit 18924cfd
-
mentioned in commit 01389985
-
mentioned in commit eda242fa
-
mentioned in commit 6c2de0ef
-
mentioned in commit 1d927b93
-
mentioned in commit 923188d5
-
mentioned in commit 968ed079
-
mentioned in commit b8cb32c6
-
mentioned in commit 278a51d5
-
mentioned in commit 9c4dfb74
-
mentioned in commit b327b25a
-
mentioned in commit 6d56ee1f
-
mentioned in commit 269f4bfb
-
mentioned in commit e2ec2068
-
mentioned in commit 94df7c66
-
mentioned in commit f06a6fac
-
mentioned in commit d4db0764
-
mentioned in commit 7294b9ad
-
mentioned in commit f045ee6a
-
mentioned in commit 8c44e83e
-
mentioned in commit 3383181a
-
mentioned in commit 098fb94e
-
mentioned in commit 0d53bc13
-
mentioned in commit 3c1c6d95
-
mentioned in commit 909e52c0
-
mentioned in commit b6c781b8
-
mentioned in commit 50b92bba
-
mentioned in commit d3b5cba5