mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-20 05:43:09 +00:00
net: add __rcu annotations to sk_wq and wq
Add proper RCU annotations/verbs to sk_wq and wq members Fix __sctp_write_space() sk_sleep() abuse (and sock->wq access) Fix sunrpc sk_sleep() abuse too Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
04cfa852ff
commit
eaefd1105b
6 changed files with 46 additions and 30 deletions
|
@ -118,6 +118,7 @@ enum sock_shutdown_cmd {
|
|||
};
|
||||
|
||||
struct socket_wq {
|
||||
/* Note: wait MUST be first field of socket_wq */
|
||||
wait_queue_head_t wait;
|
||||
struct fasync_struct *fasync_list;
|
||||
struct rcu_head rcu;
|
||||
|
@ -142,7 +143,7 @@ struct socket {
|
|||
|
||||
unsigned long flags;
|
||||
|
||||
struct socket_wq *wq;
|
||||
struct socket_wq __rcu *wq;
|
||||
|
||||
struct file *file;
|
||||
struct sock *sk;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue