search for: hr_steady_iterations

Displaying 1 result from an estimated 1 matches for "hr_steady_iterations".

2010 Aug 17
1
BUG? a racy code at o2hb_heartbeat_group_drop_item()
...orting this issue while I read the recent code. Since I do not have much background, I am not certain whether it is correct or not. But I hope this report is helpful. Please examine the code. In o2hb_heartbeat_group_drop_item(), there are following codes: 1626 if (atomic_read(&reg->hr_steady_iterations) != 0) { 1627 atomic_set(&reg->hr_steady_iterations, 0); It first checks &reg->hr_steady_iterations and then updates its value. In the case where other threads manipulate the same &reg->hr_steady_iterations concurrently, race condition might be possible. I th...