Page MenuHomeFreeBSD

aio: if there is at least one aio thread, hide an error from aio_init_aioinfo()
ClosedPublic

Authored by kib on Jul 7 2025, 2:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 6, 2:57 AM
Unknown Object (File)
Sat, Nov 29, 2:26 PM
Unknown Object (File)
Tue, Nov 25, 5:00 AM
Unknown Object (File)
Sun, Nov 23, 6:00 PM
Unknown Object (File)
Oct 13 2025, 8:12 AM
Unknown Object (File)
Oct 13 2025, 8:12 AM
Unknown Object (File)
Oct 12 2025, 7:56 PM
Unknown Object (File)
Oct 12 2025, 7:56 PM
Subscribers

Details

Summary
Noted by:       jhb
Fixes:  4685fa8e4bef169e6a1ceaf07f149232326de805

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Jul 7 2025, 2:37 PM

Note that if fork() fails, then the process is already in somewhat funny state. In the case that was reported by pho and which caused the referenced change, the mechanism preventing the forked child to escape group signal was kicking, and the process was going to terminate (loop prevented the single-threading in exit). So we are already not healthy if an error occured.

On the other hand, if there is just one aio worker, then aio is not too functional.

Anyway, I think the patch should be the right thing.

This revision is now accepted and ready to land.Jul 7 2025, 5:08 PM