diff options
author | jhb <jhb@FreeBSD.org> | 2016-03-01 18:12:14 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-03-01 18:12:14 +0000 |
commit | be47bc68fb065fc834ff51fea7df108abeae031c (patch) | |
tree | d445e19e349faf1791e2ec0922554b84037d618e /secure/usr.bin/openssl/man/asn1parse.1 | |
parent | 15b2caff0f7170f0c4bb31748f12833744f7985c (diff) | |
download | FreeBSD-src-be47bc68fb065fc834ff51fea7df108abeae031c.zip FreeBSD-src-be47bc68fb065fc834ff51fea7df108abeae031c.tar.gz |
Refactor the AIO subsystem to permit file-type-specific handling and
improve cancellation robustness.
Introduce a new file operation, fo_aio_queue, which is responsible for
queueing and completing an asynchronous I/O request for a given file.
The AIO subystem now exports library of routines to manipulate AIO
requests as well as the ability to run a handler function in the
"default" pool of AIO daemons to service a request.
A default implementation for file types which do not include an
fo_aio_queue method queues requests to the "default" pool invoking the
fo_read or fo_write methods as before.
The AIO subsystem permits file types to install a private "cancel"
routine when a request is queued to permit safe dequeueing and cleanup
of cancelled requests.
Sockets now use their own pool of AIO daemons and service per-socket
requests in FIFO order. Socket requests will not block indefinitely
permitting timely cancellation of all requests.
Due to the now-tight coupling of the AIO subsystem with file types,
the AIO subsystem is now a standard part of all kernels. The VFS_AIO
kernel option and aio.ko module are gone.
Many file types may block indefinitely in their fo_read or fo_write
callbacks resulting in a hung AIO daemon. This can result in hung
user processes (when processes attempt to cancel all outstanding
requests during exit) or a hung system. To protect against this, AIO
requests are only permitted for known "safe" files by default. AIO
requests for all file types can be enabled by setting the new
vfs.aio.enable_usafe sysctl to a non-zero value. The AIO tests have
been updated to skip operations on unsafe file types if the sysctl is
zero.
Currently, AIO requests on sockets and raw disks are considered safe
and are enabled by default. aio_mlock() is also enabled by default.
Reviewed by: cem, jilles
Discussed with: kib (earlier version)
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D5289
Diffstat (limited to 'secure/usr.bin/openssl/man/asn1parse.1')
0 files changed, 0 insertions, 0 deletions