HomeFreeBSD

sockets: in sousrsend() pass down the error to aio(4)

Description

sockets: in sousrsend() pass down the error to aio(4)

This somewhat undermines the initial goal of sousrsend() to have all
the special error handling for a write on a socket in a single place.
The aio(4) needs to see EWOULDBLOCK to re-schedule the job. Because
aio(4) handles return from soreceive() and sousrsend() with the same
code, we can't check for (error == 0 && done < job_nbytes). Keeping
this exclusion for aio(4) seems a lesser evil.

Fixes: 7a2c93b86ef75390a60a4b4d6e3911b36221dfbe

Details

Provenance
glebiusAuthored on Feb 1 2023, 9:03 PM
Parents
rG575e48f1c4eb: linux(4): Deduplicate MI futex structures.
Branches
Unknown
Tags
Unknown