diff options
| author | Jens Axboe <axboe@kernel.dk> | 2023-12-19 12:30:43 -0700 |
|---|---|---|
| committer | Sasha Levin <sashal@kernel.org> | 2024-03-26 18:19:09 -0400 |
| commit | 303c0a13833f84926a74e4fe10bf229def255f60 (patch) | |
| tree | 60bbe228657a5caa9a522d470549865514d6f5b0 /io_uring/io_uring.c | |
| parent | 049f043fe8cd759e5245c55e1788b2b664e1fc39 (diff) | |
| download | linux-303c0a13833f84926a74e4fe10bf229def255f60.tar.gz linux-303c0a13833f84926a74e4fe10bf229def255f60.tar.bz2 linux-303c0a13833f84926a74e4fe10bf229def255f60.zip | |
io_uring/unix: drop usage of io_uring socket
Commit a4104821ad651d8a0b374f0b2474c345bbb42f82 upstream.
Since we no longer allow sending io_uring fds over SCM_RIGHTS, move to
using io_is_uring_fops() to detect whether this is a io_uring fd or not.
With that done, kill off io_uring_get_socket() as nobody calls it
anymore.
This is in preparation to yanking out the rest of the core related to
unix gc with io_uring.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'io_uring/io_uring.c')
| -rw-r--r-- | io_uring/io_uring.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index ea772a02c140..747d2a6ecab8 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -175,19 +175,6 @@ static struct ctl_table kernel_io_uring_disabled_table[] = { }; #endif -struct sock *io_uring_get_socket(struct file *file) -{ -#if defined(CONFIG_UNIX) - if (io_is_uring_fops(file)) { - struct io_ring_ctx *ctx = file->private_data; - - return ctx->ring_sock->sk; - } -#endif - return NULL; -} -EXPORT_SYMBOL(io_uring_get_socket); - static inline void io_submit_flush_completions(struct io_ring_ctx *ctx) { if (!wq_list_empty(&ctx->submit_state.compl_reqs) || |
