From 8b5f73134cfaab8e3f72bea4166e57c59c635b69 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 3 Jul 2009 08:33:08 +0200 Subject: [PATCH] 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 --- init.c | 8 -------- 1 file changed, 8 deletions(-) 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; } -- 2.25.1