-
Notifications
You must be signed in to change notification settings - Fork 40
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
fix: Removed the condition variable check from Sysman Memory CTS #122
base: master
Are you sure you want to change the base?
Conversation
During the call to fetch the memory and the RAS states, the condition variable check has been removed. Related-To: VLCLJ-2343 Signed-off-by: Pratik Bari <[email protected]>
d5cdc0f
to
e3bfc16
Compare
The issue is previously deadlock was happening if one of the threads exit when handles not found. Is this right ? |
for (auto mem_handle : mem_handles) { | ||
ASSERT_NE(nullptr, mem_handle); | ||
lzt::get_mem_state(mem_handle); | ||
} | ||
lock.unlock(); |
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.
now as per the changes we have get_mem_state & get_ras_state happening serially one after the other.
But do need to fetch mem state & ras state concurrently ?
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.
As we are launching get_mem_state and get_ras_state in the threads, it does not guarantee that one will run before/after the latter. Have removed the mutex lock/unlocks now which will facilitate concurrency.
Yes |
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.
LGTM!
During the call to fetch the memory and the RAS states, the condition variable check has been removed. Related-To: VLCLJ-2343 Signed-off-by: Pratik Bari <[email protected]>
During the call to fetch the memory and the RAS states, the condition variable check has been removed. Related-To: VLCLJ-2343 Signed-off-by: Pratik Bari <[email protected]>
During the call to fetch the memory and the RAS states, the condition variable check has been removed.
Related-To: VLCLJ-2343
Signed-off-by: Pratik Bari [email protected]