Noticed while thinking about the recent threads wondering if we need a
more efficient lookup from cookie back to command. Both of these fix
bugs, but are tricky enough that I'm posting for review.
Eric Blake (2):
lib: Decrement in_flight at response, not retirement
lib: Do O(1) rather than O(n) queue insertion
generator/states-issue-command.c | 2 ++
generator/states-reply.c | 14 +++++++-------
generator/states.c | 11 +++++++++--
lib/aio.c | 6 ++++--
lib/internal.h | 2 ++
lib/rw.c | 10 ++++------
tests/server-death.c | 10 +++++-----
7 files changed, 33 insertions(+), 22 deletions(-)
--
2.20.1