]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Add a explanation for num_aio_requests
authorVolker Lendecke <vl@samba.org>
Mon, 3 Jun 2019 11:41:30 +0000 (13:41 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 18 Jun 2019 12:54:01 +0000 (12:54 +0000)
We could have used talloc_array_length()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/include/vfs.h

index 8c35fa5ecc7aa8cb0d3a22d54f5121208d0eddc1..10d7fb0621a3f8ab47450c358274b54547f625c3 100644 (file)
@@ -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;