The completion path called the request's callback before it freed the
slot. CAM sends its next request from inside that callback, so that
request could find every slot taken and bounce back with EBUSY until
the slot was freed. The spare slot left out of the CAM openings hid
this. With CAM allowed to fill every I/O slot, the bouncing cut the
throughput to a fifth on QEMU.
Free the slot first, and call the callback after dropping the queue
lock. The callback uses only the copied completion and its own
argument.
Sponsored by: Samsung Electronics