[NET]: Avoid atomic xchg() for non-error case
It also looks like there were 2 places where the test on sk_err was missing from the event wait logic (in sk_stream_wait_connect and sk_stream_wait_memory), while the rest of the sock_error() users look to be doing the right thing. This version of the patch fixes those, and cleans up a few places that were testing ->sk_err directly. Signed-off-by:Benjamin LaHaise <benjamin.c.lahaise@intel.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/sock.h 4 additions, 1 deletioninclude/net/sock.h
- net/bluetooth/af_bluetooth.c 2 additions, 3 deletionsnet/bluetooth/af_bluetooth.c
- net/bluetooth/l2cap.c 3 additions, 2 deletionsnet/bluetooth/l2cap.c
- net/bluetooth/sco.c 3 additions, 2 deletionsnet/bluetooth/sco.c
- net/core/stream.c 7 additions, 3 deletionsnet/core/stream.c
- net/irda/af_irda.c 3 additions, 2 deletionsnet/irda/af_irda.c
- net/llc/af_llc.c 2 additions, 3 deletionsnet/llc/af_llc.c
Loading
Please register or sign in to comment