aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2016-09-05 15:35:58 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2016-09-05 15:35:58 +0000
commit64cb5e2a26932271783dd65ee739178f0a36b188 (patch)
tree49a5b845d160a7a408055f2f34ba88fa9ff94b4a /lib/libarchive
parent22a07618ae9253bf7304ae133a8c41f504c06676 (diff)
downloadsrc-64cb5e2a26932271783dd65ee739178f0a36b188.tar.gz
src-64cb5e2a26932271783dd65ee739178f0a36b188.zip
Resolve deadlock between device_detach() and usbd_do_request_flags()
by reviving the SX control request lock and refining which lock protects the common scratch area in "struct usb_device". The SX control request lock was removed by r246759 because it caused a lock order reversal with the USB enumeration lock inside usbd_transfer_setup() as a function of r246616. It was thought that reducing the number of locks would resolve the LOR, but because some USB device drivers use usbd_do_request_flags() inside callback functions, like in taskqueues, a deadlock may occur when these are drained from device_detach(). By restoring the SX control request lock usbd_do_request_flags() is allowed to complete its execution when a USB device driver is detaching. By using the SX control request lock to protect the scratch area, the LOR introduced by r246616 is also resolved. Bump the FreeBSD version while at it to force recompilation of all USB kernel modules. Found by: avos@ MFC after: 1 week
Notes
Notes: svn path=/head/; revision=305421
Diffstat (limited to 'lib/libarchive')
0 files changed, 0 insertions, 0 deletions