net: implement lockless SO_PRIORITY
This is a followup of 8bf43be799
("net: annotate data-races
around sk->sk_priority").
sk->sk_priority can be read and written without holding the socket lock.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
06bc3668cc
commit
10bbf1652c
@ -493,7 +493,7 @@ static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk,
|
||||
nsk->sk_sndtimeo = osk->sk_sndtimeo;
|
||||
nsk->sk_rcvtimeo = osk->sk_rcvtimeo;
|
||||
nsk->sk_mark = READ_ONCE(osk->sk_mark);
|
||||
nsk->sk_priority = osk->sk_priority;
|
||||
nsk->sk_priority = READ_ONCE(osk->sk_priority);
|
||||
nsk->sk_rcvlowat = osk->sk_rcvlowat;
|
||||
nsk->sk_bound_dev_if = osk->sk_bound_dev_if;
|
||||
nsk->sk_err = osk->sk_err;
|
||||
|
Reference in New Issue
Block a user