commit | 7aae1e10b5c3e0b1515ffa6b854b31d634080949 | [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 | 3a8627021bbf7cf168b28d33cf41075c0313977c | |
parent | b5dbabb594b9edb0e33356f0f295089d9bbbc6ef [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