sheepdog: reorganize check for overlapping requests
commitacf6e5f0962c4be670d4a93ede77423512521876
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Nov 2016 11:32:45 +0000 (29 12:32 +0100)
committerJeff Cody <jcody@redhat.com>
Wed, 1 Feb 2017 05:17:20 +0000 (1 00:17 -0500)
tree2b2393b8438255f6d4456ae12a734228f3bd0415
parentc4080e939153adf19cb3d856d16fca11d89ba9c9
sheepdog: reorganize check for overlapping requests

Wrap the code that was copied repeatedly in the two functions,
sd_aio_setup and sd_aio_complete.

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