From: Jens Axboe Date: Fri, 3 Jul 2009 06:33:08 +0000 (+0200) Subject: Don't limit direct IO to 512b aligned X-Git-Tag: fio-1.30~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=8b5f73134cfaab8e3f72bea4166e57c59c635b69 Don't limit direct IO to 512b aligned This is a platform restriction at best, eg on Linux block devices must have 512b memory buffer alignment (or hw sector size). With NFS, this is not required. And other operating systems may have other limitations as well, so don't hard core anything. Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index 12734bd1..b9cb2bd4 100644 --- a/init.c +++ b/init.c @@ -357,14 +357,6 @@ static int fixup_options(struct thread_data *td) " that isn't seekable. Pre-read disabled.\n"); } - if (td->o.mem_align) { - if (td->o.odirect && !is_power_of_2(td->o.mem_align)) { - log_err("fio: given IO mem alignment conflicts with" - " direct=1. Resetting.\n"); - td->o.mem_align = page_mask; - } - } - return 0; }