Better accommodate random writes larger than blockalign
authorJustin Eno <jeno@micron.com>
Tue, 27 Jan 2015 22:23:20 +0000 (14:23 -0800)
committerJens Axboe <axboe@fb.com>
Wed, 28 Jan 2015 16:08:52 +0000 (09:08 -0700)
commit0412d12e12957a90d63b802a4069ca91c3feed58
tree9acca9d8fa6751a54002ba9e902e3165738a84ec
parent209e10374bb57565f0a61286d1ed8effd50fa95c
Better accommodate random writes larger than blockalign

fill_io_u() fails prematurely if the randomly-chosen offset satisfies
blockalign but not min_bs, i.e., the offset lies too near the end of
the target region.  This change honors both parameters.

Signed-off-by: Justin Eno <jeno@micron.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
io_u.c