ANDROID: vendor_hook: fix the error record of rwsem
1. add record in rwsem_read_trylock. 2. remove repetitive record in __down_write_common. Bug: 241191475 Signed-off-by: Peifeng Li <lipeifeng@oppo.com> Change-Id: I59a4fc82682b9ab7157323f75eec6b1c40a15572
This commit is contained in:
committed by
Quentin Perret
parent
5fcf93b316
commit
d07a013cd0
@@ -249,6 +249,7 @@ static inline bool rwsem_read_trylock(struct rw_semaphore *sem, long *cntp)
|
||||
|
||||
if (!(*cntp & RWSEM_READ_FAILED_MASK)) {
|
||||
rwsem_set_reader_owned(sem);
|
||||
trace_android_vh_record_rwsem_lock_starttime(current, jiffies);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1326,7 +1327,6 @@ static inline int __down_write_common(struct rw_semaphore *sem, int state)
|
||||
return -EINTR;
|
||||
}
|
||||
|
||||
trace_android_vh_record_rwsem_lock_starttime(current, jiffies);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user