From: Jens Axboe Date: Mon, 12 Feb 2007 19:18:42 +0000 (+0100) Subject: [PATCH] Fix buflen trimming X-Git-Tag: fio-1.12~96 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=07e4b620ecb7f64dc75ac288928f073fb42f4441;p=fio.git [PATCH] Fix buflen trimming It's ok to trim to the minimum block size for RAWIO. Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index 89ece538..29c23f6f 100644 --- a/io_u.c +++ b/io_u.c @@ -138,13 +138,6 @@ static unsigned int get_next_buflen(struct thread_data *td, struct fio_file *f, } while (buflen + io_u->offset > f->real_file_size) { - /* - * if using direct/raw io, we may not be able to - * shrink the size. so just fail it. - */ - if (td->io_ops->flags & FIO_RAWIO) - return 0; - if (buflen == td->min_bs[ddir]) return 0;