mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
net: remove cmsg restriction from io_uring based send/recvmsg calls
No need to restrict these anymore, as the worker threads are direct clones of the original task. Hence we know for a fact that we can support anything that the regular task can. Since the only user of proto_ops->flags was to flag PROTO_CMSG_DATA_ONLY, kill the member and the flag definition too. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
@@ -42,8 +42,6 @@ struct net;
|
||||
#define SOCK_PASSCRED 3
|
||||
#define SOCK_PASSSEC 4
|
||||
|
||||
#define PROTO_CMSG_DATA_ONLY 0x0001
|
||||
|
||||
#ifndef ARCH_HAS_SOCKET_TYPES
|
||||
/**
|
||||
* enum sock_type - Socket types
|
||||
@@ -138,7 +136,6 @@ typedef int (*sk_read_actor_t)(read_descriptor_t *, struct sk_buff *,
|
||||
|
||||
struct proto_ops {
|
||||
int family;
|
||||
unsigned int flags;
|
||||
struct module *owner;
|
||||
int (*release) (struct socket *sock);
|
||||
int (*bind) (struct socket *sock,
|
||||
|
||||
Reference in New Issue
Block a user