HomeFreeBSD

socket: Split up sosend_generic()

Description

socket: Split up sosend_generic()

Factor out the bits that run with the sock I/O lock held into a separate
function. In this implementation, we are doing a bit more work under
the I/O lock than before. However, lock contention is only a problem
when multiple threads are transmitting on the same socket, which is an
unusual case that is not expected to perform well in any case.

No functional change intended.

Reviewed by: gallatin, glebius
MFC after: 2 weeks
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D46305

(cherry picked from commit fb901935f257ddcc492fe9efb605797f181c6597)

Details

Provenance
markjAuthored on Aug 19 2024, 2:20 PM
Reviewer
gallatin
Differential Revision
D46305: socket: Split up sosend_generic()
Parents
rG0480918c0904: socket: Split up soreceive_generic()
Branches
Unknown
Tags
Unknown