diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-04-13 02:58:38 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-04-13 09:37:54 -0600 |
commit | 084804002e512427bfe52b448cb7cac0d4209b64 (patch) | |
tree | 7b60c51c386a1d7a96f1ab693f615fa982a0d8c5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f70865db5ff35f5ed0c7e9ef63e7cca3d4947f04 (diff) |
io_uring: fix leaking reg files on exit
If io_sqe_files_unregister() faults on io_rsrc_ref_quiesce(), it will
fail to do unregister leaving files referenced. And that may well happen
because of a strayed signal or just because it does allocations inside.
In io_ring_ctx_free() do an unsafe version of unregister, as it's
guaranteed to not have requests by that point and so quiesce is useless.
Cc: stable@vger.kernel.org
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e696e9eade571b51997d0dc1d01f144c6d685c05.1618278933.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions