Commit 3a1e448e authored by dongliang.cui's avatar dongliang.cui Committed by Carlos Llamas
Browse files

ANDROID: vendor_hooks: add inode as param to android_rvh_ctl_dirty_rate

We've added a hook point to limit the buffer IO rate from the source.
https://android-review.googlesource.com/c/kernel/common/+/2905568



A problem was discovered when using this function.

When process A and B operate the same file, since the inode lock is
held by A, if A is speed-limited, B will also be limited.

So we want to pass the inode as parameter, avoid this situation by
checking the lock wait list.

Bug: 346467081

Change-Id: I5b9d554922cee79d1405e34eb6405dc6104f762c
Signed-off-by: default avatardongliang.cui <dongliang.cui@unisoc.com>
parent d5e8c572
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment