android_system_core/adb/daemon
Josh Gao 6da375fdc9 adb: only submit USB writes on the worker thread.
After USB disconnection, io_submit will block until the endpoint comes
back up. We handle this in the worker thread by sending it a signal to
break it out of io_submit when we notice that USB has gone down, but
opportunistic writes from the main thread can get stuck in this scenario
as well. Submitting the writes only on the worker thread doesn't have a
measurable impact on performance, so avert this scenario by only
submitting writes from the worker thread.

Bug: http://b/157078255
Test: test_device.py
Change-Id: I1118f2e2a70d13f15592eb996e7084033ed5cb9d
(cherry picked from commit 962551000b)
2020-05-21 14:55:46 -07:00
..
abb.cpp [adb] Speed up the streaming install 2019-08-08 12:55:51 -07:00
abb_service.cpp [adb] Speed up the streaming install 2019-08-08 12:55:51 -07:00
adb_wifi.cpp [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
auth.cpp [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
file_sync_service.cpp adb: implement compression for file sync. 2020-03-26 16:08:41 -07:00
file_sync_service.h adb: use adb's unique_fd instead of android::base. 2018-07-25 18:08:45 -07:00
framebuffer_service.cpp adb: move fdevent to its own folder. 2019-07-08 14:37:27 -07:00
framebuffer_service.h adbd: compile for host. 2019-01-23 12:59:41 -08:00
jdwp_service.cpp adbd: move jdwp listening logic into ART. 2019-06-25 12:37:20 -07:00
logging.cpp adbd: add runtime-configurable logging. 2020-03-02 12:44:54 -08:00
logging.h adbd: add runtime-configurable logging. 2020-03-02 12:44:54 -08:00
main.cpp [adbwifi] Add adbwifi_libs, TLS connection, and MDNS implementation. 2020-02-21 21:06:40 +00:00
mdns.cpp [adbwifi] Add adbwifi_libs, TLS connection, and MDNS implementation. 2020-02-21 21:06:40 +00:00
mdns.h [adbwifi] Add adbwifi_libs, TLS connection, and MDNS implementation. 2020-02-21 21:06:40 +00:00
restart_service.cpp adbd: log when exiting due to root/unroot/tcpip/usb. 2019-02-19 13:12:59 -08:00
restart_service.h adbd: compile for host. 2019-01-23 12:59:41 -08:00
services.cpp adbd: add runtime-configurable logging. 2020-03-02 12:44:54 -08:00
shell_service.cpp adbd: add runtime-configurable logging. 2020-03-02 12:44:54 -08:00
shell_service.h Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
shell_service_test.cpp Revert "Revert "Add a way to turn off unique_fd's operator int."" 2019-05-06 16:18:02 -07:00
transport_qemu.cpp [adbwifi] Add A_STLS command. 2020-02-21 21:07:13 +00:00
usb.cpp adb: only submit USB writes on the worker thread. 2020-05-21 14:55:46 -07:00
usb_ffs.cpp Revert "Reland "adb: daemon: Assign valid fd to usb_handle ep0 file descriptor"" 2020-04-06 16:48:35 -07:00
usb_ffs.h Move adbd's legacy USB implementation to fastboot. 2020-03-31 16:05:36 -07:00