summaryrefslogtreecommitdiff
path: root/libsparse/sparse.cpp
diff options
context:
space:
mode:
authorJerry Zhang <zhangjerry@google.com>2018-03-19 17:54:39 -0700
committerJerry Zhang <zhangjerry@google.com>2018-05-16 21:44:46 +0000
commit5ba6802e9ab30855212d9aae753363f68a4e30e2 (patch)
tree0386991a31be217d2f511cea98f3b0ad3641e8c5 /libsparse/sparse.cpp
parent3464bc4b439e01244c0a6b5f35e8e949e0f16096 (diff)
adb: Retry io in case of interrupt
io_submit sleeps waiting for the gadget to be enabled. Currently if that sleep is interrupted it will shut down adb, causing it to have to start back up again. Rather than return EINTR if interrupted, io_submit actually completes and the EINTR is found later when looking through events. Since an io that is interrupted will be small anyway, add a loop to retry small ios. Also upgrade aio logs in accordance with their importance. Fixes: 75981904 Test: adb works, logs show successful interrupt handling Change-Id: I35973fce130ee849ce59fef80d15b65afb816ba4 (cherry picked from commit 6e9a327504e6aa2488b736fd5592525278a0916f)
Diffstat (limited to 'libsparse/sparse.cpp')
0 files changed, 0 insertions, 0 deletions