]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: hide uring_fd in ctx
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 17 Jan 2020 01:45:59 +0000 (04:45 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Jan 2020 00:04:06 +0000 (17:04 -0700)
commitef1c3a61899441ec544e6cc2a1c5832f725ab8a6
treef300c6f74d28ebdbc42919fd21e11b9fe2448a25
parentdb77da380d6dfbf2cdeba3410176337a955e0293
io_uring: hide uring_fd in ctx

req->ring_fd and req->ring_file are used only during the prep stage
during submission, which is is protected by mutex. There is no need
to store them per-request, place them in ctx.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c