io_uring: safer sq_creds putting
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 20 Apr 2021 11:03:32 +0000 (12:03 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Apr 2021 18:55:28 +0000 (12:55 -0600)
commit07db298a1c96bdba2102d60ad51fcecb961177c9
treec0367db6051b749ce5021ca9b1842aea7b4b5836
parent3a0a690235923b838390500fd46edc23bed092e0
io_uring: safer sq_creds putting

Put sq_creds as a part of io_ring_ctx_free(), it's easy to miss doing it
in io_sq_thread_finish(), especially considering past mistakes related
to ring creation failures.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/3becb1866467a1de82a97345a0a90d7fb8ff875e.1618916549.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c