Description of problem: pthread_mutex_lock() can return without successfully locking the mutex. Many calls to this function assume that is always blocks until the locking succeeds. Version-Release number of selected component (if applicable): all How reproducible: code review Actual results: Many data structures use a pthread_mutex for exclusive access and guaranteeing atomic updates. Unfortunately a lot of occurrences do not check the success/fail result of the call to pthread_mutex_lock(). Expected results: In case pthread_mutex_lock() fails, a retry or abort of the function should be done, depending on the result errno contains. Additional info: See 'man 3p pthreead_mutex_lock'.
I don't think we will get some improvement after check the return code of pthread_mutex_(lock|unlock) call so I am closing this enhancement. Please feel free to reopen the bug if you think it is useful to improve the performance. Thanks, Mohit Agrawal