diff options
author | alc <alc@FreeBSD.org> | 2001-03-05 01:30:23 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2001-03-05 01:30:23 +0000 |
commit | a27aa6e3d5996d6bc2a9025f7e65f3e0934f0160 (patch) | |
tree | 6607996f4ef7ecb64aa30158e52d4b4453a509c5 /lib/libc/stdlib/strtoq.c | |
parent | 8bd7abbad1d199e0b15ab61d8c1b52ea57f9d73b (diff) | |
download | FreeBSD-src-a27aa6e3d5996d6bc2a9025f7e65f3e0934f0160.zip FreeBSD-src-a27aa6e3d5996d6bc2a9025f7e65f3e0934f0160.tar.gz |
Eliminate the aio_freejobs list. Its purpose was to store free
aiocb's allocated by zalloc(). In other words, zfree() was never
called. Now, we call zfree(). Why eliminate this micro-
optimization? At some later point, when we multithread the AIO
system, we would need a mutex to synchronize access to aio_freejobs,
making its use nearly indistinguishable in cost from zalloc() and
zfree().
Remove unnecessary fhold() and fdrop() calls from aio_qphysio(),
undo'ing a part of revision 1.86. The reference count on the file
structure is already incremented by _aio_aqueue() before it calls
aio_qphysio(). (Update the comments to document this fact.)
Remove unnecessary casts from _aio_aqueue(), aio_read(), aio_write()
and aio_waitcomplete().
Remove an unnecessary "return;" from aio_process().
Add "static" in various places.
Diffstat (limited to 'lib/libc/stdlib/strtoq.c')
0 files changed, 0 insertions, 0 deletions