sheepdog: simplify inflight_aio_head management
commitc4080e939153adf19cb3d856d16fca11d89ba9c9
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Nov 2016 11:32:44 +0000 (29 12:32 +0100)
committerJeff Cody <jcody@redhat.com>
Wed, 1 Feb 2017 05:17:20 +0000 (1 00:17 -0500)
tree2243e238946c1dd0f91715d4a78817201cfa5417
parent28ddd08cd68029933e6a61b7f6d2af88a7c1d344
sheepdog: simplify inflight_aio_head management

Add to the list in add_aio_request and, indirectly, resend_aioreq.  Inline
free_aio_req in the caller, it does not simply undo alloc_aio_req's job.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 20161129113245.32724-5-pbonzini@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/sheepdog.c