platform_system_core/adb/daemon
Josh Gao 63b52ec13b adbd: increment writes_submitted_ before submitting writes.
If we fail to submit writes for some reason (e.g. the USB cable was
unplugged), another thread that's waiting on the write mutex can enter
SubmitWrites and attempt to resubmit the writes that we already failed
to submit, leading to a failed assertion of !IoBlock::pending.

Increment writes_submitted_ before actually calling io_submit, so we
skip over these writes and fall through to exit.

Bug: http://b/129134256
Test: manually unplugged a blueline
Change-Id: I2fd0034e45db22c8f637c81039ce686b7aa6a03b
2019-03-26 13:06:38 -07:00
..
include/adbd adbd: extract functionfs fd creation. 2018-10-18 13:58:06 -07:00
abb.cpp adbd: switch abb to ConsumePrefix. 2019-02-25 13:59:00 -08:00
abb_service.cpp Adding EXEC version of calling ABB. 2019-02-23 06:15:03 +00:00
auth.cpp adbd: compile for host. 2019-01-23 12:59:41 -08:00
file_sync_service.cpp Revert "Handle adb sync with Bionic under /bionic" 2019-03-14 07:35:54 +09: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: don't use <error.h>. 2018-10-22 17:04:32 -07:00
framebuffer_service.h adbd: compile for host. 2019-01-23 12:59:41 -08:00
jdwp_service.cpp adb: switch to base::{Send,Receive}FileDescriptors. 2019-02-13 13:21:54 -08:00
main.cpp adbd: allowing adb root when the device is unlocked 2019-03-15 03:04:46 +08:00
mdns.cpp Only set mdns_registered on success 2019-01-09 08:46:50 +01:00
mdns.h Make ADBD announce its presence over mDNS 2017-03-07 14:42:06 -08:00
reboot_service.cpp adbd: compile for host. 2019-01-23 12:59:41 -08:00
reboot_service.h adbd: compile for host. 2019-01-23 12:59:41 -08:00
remount_service.cpp adbd: cleanups in remount/verity. 2019-03-06 13:03:30 -08:00
remount_service.h adb: use /system/bin/remount command 2019-03-04 11:12:54 -08: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: switch daemon/services to ConsumePrefix. 2019-02-25 13:49:25 -08:00
set_verity_enable_state_service.cpp adbd: cleanups in remount/verity. 2019-03-06 13:03:30 -08:00
set_verity_enable_state_service.h adbd: compile for host. 2019-01-23 12:59:41 -08:00
shell_service.cpp Adding EXEC version of calling ABB. 2019-02-23 06:15:03 +00:00
shell_service.h Adding EXEC version of calling ABB. 2019-02-23 06:15:03 +00:00
shell_service_test.cpp adb: split daemon services out of service_to_fd. 2018-07-25 18:49:37 -07:00
transport_qemu.cpp adbd: fix TCP bind address. 2019-01-30 14:49:20 -08:00
usb.cpp adbd: increment writes_submitted_ before submitting writes. 2019-03-26 13:06:38 -07:00
usb_dummy.cpp adbd: compile for host. 2019-01-23 12:59:41 -08:00
usb_ffs.cpp adbd: open functionfs ep0 as O_RDWR. 2018-10-18 13:58:06 -07:00
usb_legacy.cpp adbd: implement a nonblocking USB Connection. 2018-10-19 17:53:18 -07:00