]> 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)
commit9e7bd4236b22475d3dd14ac8b2daadb851f2e034
treef300c6f74d28ebdbc42919fd21e11b9fe2448a25
parentf1046c3d2f3a4502f1452a951a6b34e1b7a8e3e6
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