backend: cleanup overlap submission logic
authorJens Axboe <axboe@kernel.dk>
Mon, 14 Aug 2017 14:28:54 +0000 (08:28 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Aug 2017 14:28:54 +0000 (08:28 -0600)
commit08b2b386736e9f60a342092ca4b3e6990eab5c2b
tree6c99db396cd7972979074d1b611a4767513b68cf
parent38f2df4e2ece9a6db857fb6a8b5c91ddac6304fc
backend: cleanup overlap submission logic

Move it into a helper, since we're calling it from two places.
Only check if depth is > 1, since the current io_u is already
accounted as one.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c