1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

smbd: Add a explanation for num_aio_requests

We could have used talloc_array_length()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Volker Lendecke 2019-06-03 13:41:30 +02:00 committed by Jeremy Allison
parent a5b1897397
commit 8d4f7e564f

View 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;