ANDROID: vendor_hooks: Supplement the missing hook call point.
As a supplement to commit f729494767
("ANDROID: vendor_hook: add hooks to protect locking-tsk in cpu scheduler").
In rwsem read, we missed a lock-holding scenario, add it now.
Bug: 290868674
Change-Id: I718dd942b24b330a79283fc241dcbf47cc34c0c5
Signed-off-by: Liujie Xie <xieliujie@oppo.com>
This commit is contained in:
@@ -1018,6 +1018,8 @@ queue:
|
||||
raw_spin_unlock_irq(&sem->wait_lock);
|
||||
rwsem_set_reader_owned(sem);
|
||||
lockevent_inc(rwsem_rlock_fast);
|
||||
trace_android_vh_record_rwsem_lock_starttime(
|
||||
current, jiffies);
|
||||
return sem;
|
||||
}
|
||||
adjustment += RWSEM_FLAG_WAITERS;
|
||||
|
||||
Reference in New Issue
Block a user