-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
task_map: added task map scaling #10044
base: master
Are you sure you want to change the base?
task_map: added task map scaling #10044
Conversation
Signed-off-by: Leonardo Alminana <[email protected]>
Signed-off-by: Leonardo Alminana <[email protected]>
Signed-off-by: Leonardo Alminana <[email protected]>
Signed-off-by: Leonardo Alminana <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change request:
- add missing flb_errno();
- add a simple internal unit test to test it behavior.
} | ||
|
||
if (new_task_map == NULL) { | ||
return -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing flb_errno();
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in commit 0c3b656
Additionally the destructor now works with partially initialized instances Signed-off-by: Leonardo Alminana <[email protected]>
Signed-off-by: Leonardo Alminana <[email protected]>
Signed-off-by: Leonardo Alminana <[email protected]>
Could you please have a check on this PR? @edsiper @patrick-stephens |
This PR modifies the
task_map
member of the global context structure (struct flb_config
) to make its size dynamic, adds a new field namedtask_map_size
to track its size and ancillary functionsflb_config_task_map_resize
andflb_config_task_map_grow
to manage its size.With these changes we overcome the 2048 concurrent task limit previously imposed by the static array size.