mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
ANDROID: vendor_hooks: Supplement the missing hook call point.
As a supplement to commit 6c1c1552e6
("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:
@@ -1078,6 +1078,8 @@ queue:
|
|||||||
raw_spin_unlock_irq(&sem->wait_lock);
|
raw_spin_unlock_irq(&sem->wait_lock);
|
||||||
rwsem_set_reader_owned(sem);
|
rwsem_set_reader_owned(sem);
|
||||||
lockevent_inc(rwsem_rlock_fast);
|
lockevent_inc(rwsem_rlock_fast);
|
||||||
|
trace_android_vh_record_rwsem_lock_starttime(
|
||||||
|
current, jiffies);
|
||||||
return sem;
|
return sem;
|
||||||
}
|
}
|
||||||
adjustment += RWSEM_FLAG_WAITERS;
|
adjustment += RWSEM_FLAG_WAITERS;
|
||||||
|
|||||||
Reference in New Issue
Block a user