diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-06-30 18:26:43 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-06-30 18:26:43 +0000 |
commit | 77ca9e76cd21adf0e8dbac842a5329139ff51a70 (patch) | |
tree | 8889f29afde8e61171066e7c614ff205c478c041 /tools/diag | |
parent | 5cb2efe53094bce90bb19aca0b587af22d76f520 (diff) | |
download | FreeBSD-src-77ca9e76cd21adf0e8dbac842a5329139ff51a70.zip FreeBSD-src-77ca9e76cd21adf0e8dbac842a5329139ff51a70.tar.gz |
In udp_append() and udp_input(), make use of read locking on incpbs
rather than write locking: while we need to maintain a valid reference
to the inpcb and fix its state, no protocol layer state is modified
during an IPv4 UDP receive -- there are only changes at the socket
layer, which is separately protected by socket locking.
While parallel concurrent receive on a single UDP socket is currently
relatively unusual, introducing read locking in the transmit path,
allowing concurrent receive and transmit, will significantly improve
performance for loads such as BIND, memcached, etc.
MFC after: 2 months
Tested by: gnn, kris, ps
Diffstat (limited to 'tools/diag')
0 files changed, 0 insertions, 0 deletions