diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-12-19 12:30:43 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-12-19 12:33:50 -0700 |
commit | a4104821ad651d8a0b374f0b2474c345bbb42f82 (patch) | |
tree | 46fba3dddd88e21c0ffeb456a0dd0a5b02c61d24 /net/unix | |
parent | c43203154d8ac579537aa0c7802b77d463b1f53a (diff) | |
download | linux-a4104821ad651d8a0b374f0b2474c345bbb42f82.tar.gz linux-a4104821ad651d8a0b374f0b2474c345bbb42f82.tar.bz2 linux-a4104821ad651d8a0b374f0b2474c345bbb42f82.zip |
io_uring/unix: drop usage of io_uring socket
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>
Diffstat (limited to 'net/unix')
-rw-r--r-- | net/unix/scm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/unix/scm.c b/net/unix/scm.c index 6ff628f2349f..822ce0d0d791 100644 --- a/net/unix/scm.c +++ b/net/unix/scm.c @@ -35,10 +35,8 @@ struct sock *unix_get_socket(struct file *filp) /* PF_UNIX ? */ if (s && ops && ops->family == PF_UNIX) u_sock = s; - } else { - /* Could be an io_uring instance */ - u_sock = io_uring_get_socket(filp); } + return u_sock; } EXPORT_SYMBOL(unix_get_socket); |