net: remove bogus RCU annotations on socket.wq

We never use RCU protection for it, just a lot of cargo-cult
rcu_deference_protects calls.

Note that we do keep the kfree_rcu call for it, as the references through
struct sock are RCU protected and thus might require a grace period before
freeing.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Christoph Hellwig
2018-07-30 09:45:07 +02:00
committed by David S. Miller
parent d46eeeaf99
commit e6476c2144
3 changed files with 6 additions and 8 deletions

View File

@@ -114,7 +114,7 @@ struct socket {
unsigned long flags;
struct socket_wq __rcu *wq;
struct socket_wq *wq;
struct file *file;
struct sock *sk;