From: Volker Lendecke Date: Mon, 3 Jun 2019 11:41:30 +0000 (+0200) Subject: smbd: Add a explanation for num_aio_requests X-Git-Tag: ldb-2.0.5~358 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d4f7e564ff299545008bbf3227bb6c27a66a6c7;p=thirdparty%2Fsamba.git smbd: Add a explanation for num_aio_requests We could have used talloc_array_length() Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 8c35fa5ecc7..10d7fb0621a 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -378,6 +378,10 @@ typedef struct files_struct { /* if not NULL, means this is a print file */ struct print_file_data *print_file; + /* + * Optimize the aio_requests array for high performance: Never + * shrink it, maintain num_aio_requests separately + */ unsigned num_aio_requests; struct tevent_req **aio_requests;