]> git.kaiwu.me - nginx.git/commit
Refactored sendfile() AIO preload.
authorValentin Bartenev <vbart@nginx.com>
Wed, 11 Feb 2015 14:52:15 +0000 (17:52 +0300)
committerValentin Bartenev <vbart@nginx.com>
Wed, 11 Feb 2015 14:52:15 +0000 (17:52 +0300)
commit2b8d6ad805a0132844cfbc1cf1c6988dfe8c9973
tree0cfe79e6cd5bd968c04ec176383c1fd0efc86757
parent2b7e167dbb59a6d1152c644080e21782b8b675e3
Refactored sendfile() AIO preload.

This reduces layering violation and simplifies the logic of AIO preread, since
it's now triggered by the send chain function itself without falling back to
the copy filter.  The context of AIO operation is now stored per file buffer,
which makes it possible to properly handle cases when multiple buffers come
from different locations, each with its own configuration.
src/core/ngx_buf.h
src/core/ngx_connection.h
src/core/ngx_output_chain.c
src/event/ngx_event.h
src/http/ngx_http_copy_filter_module.c
src/http/ngx_http_request.h
src/os/unix/ngx_file_aio_read.c
src/os/unix/ngx_files.h
src/os/unix/ngx_freebsd_sendfile_chain.c
src/os/unix/ngx_linux_aio_read.c