net: Replace more instances of ACCESS_ONCE w/ READ_ONCE
This commit is contained in:
parent
a895524ae2
commit
36de303bb4
|
@ -1916,7 +1916,7 @@ int tcp_v4_early_demux(struct sk_buff *skb)
|
|||
skb->sk = sk;
|
||||
skb->destructor = sock_edemux;
|
||||
if (sk->sk_state != TCP_TIME_WAIT) {
|
||||
struct dst_entry *dst = ACCESS_ONCE(sk->sk_rx_dst);
|
||||
struct dst_entry *dst = READ_ONCE(sk->sk_rx_dst);
|
||||
|
||||
if (dst)
|
||||
dst = dst_check(dst, 0);
|
||||
|
|
|
@ -1959,7 +1959,7 @@ int udp_v4_early_demux(struct sk_buff *skb)
|
|||
|
||||
skb->sk = sk;
|
||||
skb->destructor = sock_edemux;
|
||||
dst = ACCESS_ONCE(sk->sk_rx_dst);
|
||||
dst = READ_ONCE(sk->sk_rx_dst);
|
||||
|
||||
if (dst)
|
||||
dst = dst_check(dst, 0);
|
||||
|
|
|
@ -1646,7 +1646,7 @@ static void tcp_v6_early_demux(struct sk_buff *skb)
|
|||
skb->sk = sk;
|
||||
skb->destructor = sock_edemux;
|
||||
if (sk->sk_state != TCP_TIME_WAIT) {
|
||||
struct dst_entry *dst = ACCESS_ONCE(sk->sk_rx_dst);
|
||||
struct dst_entry *dst = READ_ONCE(sk->sk_rx_dst);
|
||||
|
||||
if (dst)
|
||||
dst = dst_check(dst, inet6_sk(sk)->rx_dst_cookie);
|
||||
|
|
|
@ -1210,7 +1210,7 @@ static int packet_rcv_fanout(struct sk_buff *skb, struct net_device *dev,
|
|||
struct packet_type *pt, struct net_device *orig_dev)
|
||||
{
|
||||
struct packet_fanout *f = pt->af_packet_priv;
|
||||
unsigned int num = ACCESS_ONCE(f->num_members);
|
||||
unsigned int num = READ_ONCE(f->num_members);
|
||||
struct packet_sock *po;
|
||||
unsigned int idx;
|
||||
|
||||
|
|
Loading…
Reference in New Issue