aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_files.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2015-02-11 17:52:15 +0300
committerValentin Bartenev <vbart@nginx.com>2015-02-11 17:52:15 +0300
commit2b8d6ad805a0132844cfbc1cf1c6988dfe8c9973 (patch)
tree0cfe79e6cd5bd968c04ec176383c1fd0efc86757 /src/os/unix/ngx_files.h
parent2b7e167dbb59a6d1152c644080e21782b8b675e3 (diff)
downloadnginx-2b8d6ad805a0132844cfbc1cf1c6988dfe8c9973.tar.gz
nginx-2b8d6ad805a0132844cfbc1cf1c6988dfe8c9973.zip
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.
Diffstat (limited to 'src/os/unix/ngx_files.h')
-rw-r--r--src/os/unix/ngx_files.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h
index a78ec9613..a046ee756 100644
--- a/src/os/unix/ngx_files.h
+++ b/src/os/unix/ngx_files.h
@@ -375,6 +375,7 @@ size_t ngx_fs_bsize(u_char *name);
#if (NGX_HAVE_FILE_AIO)
+ngx_int_t ngx_file_aio_init(ngx_file_t *file, ngx_pool_t *pool);
ssize_t ngx_file_aio_read(ngx_file_t *file, u_char *buf, size_t size,
off_t offset, ngx_pool_t *pool);