commit | b9727b06ff4c89727d9f0c3adc09c4c315782f7c | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Tue Feb 26 17:53:52 2019 -0800 |
committer | Josh Gao <jmgao@google.com> | Wed Feb 27 15:45:59 2019 -0800 |
tree | ea396e00a7ae74f776404fb6afb5768544cb1344 | |
parent | c51a911592e3449f1be137dd6d97712d6dac6626 [diff] |
adbd: limit the sizes of aio writes. The kernel does a kmalloc of the write size for each write during io_submit, which can lead to failure if the kernel's heap is fragmented such that it can't allocate a contiguous 1MB chunk. Partition writes into 16 page chunks which are much more likely to succeed. Bug: http://b/126582877 Test: test_device.py Change-Id: Ib2d48561594e1d81f1a2f62e34eaa40265ac47c4