Skip to content
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

scst_lib: Move synchronize_rcu() calls out of loops to reduce overhead #264

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

lnocturno
Copy link
Contributor

This patch refactors the code by accumulating the target devices into a temporary list and moving the synchronize_rcu() call outside of the loops. By doing so, we reduce the number of synchronize_rcu() calls to one, improving the efficiency of the cleanup process.

Fixes: #229

@lnocturno lnocturno force-pushed the 3.9/gleb/reduce_sync_rcu_calls branch 2 times, most recently from 15a269d to a33b800 Compare November 18, 2024 16:21
This patch refactors the code by accumulating the target devices into a
temporary list and moving the synchronize_rcu() call outside of the
loops. By doing so, we reduce the number of synchronize_rcu() calls to
one, improving the efficiency of the cleanup process.

Fixes: #229
@lnocturno lnocturno merged commit f265dc4 into master Nov 18, 2024
34 checks passed
@lnocturno lnocturno deleted the 3.9/gleb/reduce_sync_rcu_calls branch November 18, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scst_sess_free_tgt_devs takes much time if there are many scst_tgt_dev-s
1 participant