Page MenuHomeFreeBSD

Fix aio_{read,write}v() with SIGEV_THREAD.
ClosedPublic

Authored by tmunro on Aug 20 2021, 10:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 4:31 PM
Unknown Object (File)
Sun, Oct 12, 1:39 PM
Unknown Object (File)
Sun, Oct 12, 1:39 PM
Unknown Object (File)
Sun, Oct 12, 2:39 AM
Unknown Object (File)
Sun, Oct 12, 2:39 AM
Unknown Object (File)
Sat, Oct 11, 4:54 PM
Unknown Object (File)
Sun, Oct 5, 10:03 PM
Unknown Object (File)
Thu, Sep 25, 2:17 AM
Subscribers
None

Details

Summary

librt contains wrappers that convert SIGEV_THREAD (as required by POSIX) to SIGEV_THREAD_ID (as required by the kernel) for aio_{read,write}(). Add the same for the new vectored functions.

Test Plan

sysctl vfs.aio.enable_unsafe=1 ; cd /usr/src/test/sys/aio ; make ; make install ; cd /usr/tests/sys/aio ; kyua test. (Thanks asomers for suggesting this test).

Diff Detail

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

Event Timeline

tmunro created this revision.

Thanks for fixing this.

This revision is now accepted and ready to land.Aug 20 2021, 2:43 PM