@hbilling - I went through the code and for now I pushed a commit based on your remarks, defining macros for increment/decrement guarded by dst group lock. The increment is in a single place, decrement in two places, so I am not sure if using an atomic variable there will give any significant gain. When I will get some time for more testing, I will play with variants. The ds_get_leastloaded()
was also updated to use the dst group lock.
Test and if all ok, report back and it can be backported.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.