diff options
author | Edgar Arriaga <edgararriaga@google.com> | 2022-02-01 18:58:34 -0800 |
---|---|---|
committer | Divyanand Rangu <quic_drangu@quicinc.com> | 2022-03-28 06:46:02 +0000 |
commit | 66547e1c9c4a4bda8cbdf7687da2b599d343f8a0 (patch) | |
tree | 1e35fdbb35d65d774d7da57476c8cffdf46a9427 /packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java | |
parent | 123e29b617e75aeaaf461a136be146953082094a (diff) |
Fix for compaction bailing out when MAX_RW_COUNT bytes are sent to compaction
Compaction uses process_madvise which internally makes use of iovec
which imposes certain restrictions on the amount of data that can be
sent, previously we had added a constraint of the total vmas sent within
a single syscall determined by UIO_MAXIOV. However, in this CL we also
added a cap on the amount of bytes sent per syscall up to the maximum
supported MAX_RW_COUNT and split the VMA into chunks which end up
being sent in different syscalls.
Test: Verified ZRAM changes during compaction and added logging to
verify that all VMAs where processed
Bug: 205658049
CRs-Fixed:3121545
Change-Id: Ib478397a1199d31a85606b0a38ab1b673b2333fc
(cherry picked from commit 95907f23d8f729168dd3d3cd30bed1744a574464)
Change-Id: I641b9c60c3c49d73190e9cfa4d2bd8cb5498c7a2
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardAbsKeyInputViewController.java')
0 files changed, 0 insertions, 0 deletions