Fail if we can't satisfy the minimum block size
authorJens Axboe <axboe@kernel.dk>
Mon, 6 Feb 2012 20:58:56 +0000 (21:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 Feb 2012 20:58:56 +0000 (21:58 +0100)
commit52c580272d87d2b9b8a65d317bf7c2d432a30fec
treecb04df1e786de84ef4502d64caa85475ed3f5a4a
parentefcd9dcc5e93fc313b0cd37e267bbf141675826c
Fail if we can't satisfy the minimum block size

Commit 799441286648bdced4f42d3040f37fd2e35eaf1d introduced a bug
where if we cannot satisfy the minimum block size from a given
offset, then we will loop forever trying to do that. Fix that bug
checking early if it is indeed a possible thing to satisfy, if
not give up.

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