commit | 743a5ec96cd54bdc06234be15cdde65296357a6a | [log] [tgz] |
---|---|---|
author | Ken Sumrall <ksumrall@android.com> | Mon Apr 22 18:43:28 2013 -0700 |
committer | Ken Sumrall <ksumrall@android.com> | Mon Apr 22 19:21:07 2013 -0700 |
tree | c1bf08e819126c8cfe02d212f7e0b50e5e2216b7 | |
parent | b55025bfa1039c8fa205727b49fe4a8dd1df7725 [diff] |
vold: Perform fstrim work in a separate thread. Some devices can take up to a few minutes to do fstrim. If done in the same thread as the rest of the vold command listener, then vold is blocked from responding to any other commands until the trim is done. So create a thread to do the work, and return immediately. bug: 8688454 Change-Id: I780baae03ba7de2d3e805c3e9f103ec03be84c47