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
Loading
Please register or sign in to comment