]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a test for cancelling an active AIO request on a socket.
authorjhb <jhb@FreeBSD.org>
Sat, 16 Apr 2016 00:01:16 +0000 (00:01 +0000)
committerjhb <jhb@FreeBSD.org>
Sat, 16 Apr 2016 00:01:16 +0000 (00:01 +0000)
commit35691f7a6f04cec368d8636543bca596e870faf3
tree6170830cb5b37234b5381b6e485d109455b90c41
parent26c891f0342597b83a8dc9b7e9bb67b9728d84ad
Add a test for cancelling an active AIO request on a socket.

The older AIO code awakened all pending AIO requests on a socket
when any data arrived.  This could result in AIO daemons blocking on
an empty socket buffer.  These requests could not be cancelled
which led to a deadlock during process exit.  This test reproduces
this case.  The newer AIO code is able to cancel the pending AIO
request correctly.

Reviewed by: ngie (-ish)
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D4363
tests/sys/aio/aio_test.c