From 8670579ed3a063723f194e6fec8250bec4d8ea25 Mon Sep 17 00:00:00 2001 From: Shawn Lewis Date: Wed, 21 Nov 2007 09:35:41 +0100 Subject: [PATCH] don't log iopiece when do_verify is off Don't log an iopiece if do_verify is off. This allows us to do large write phases (with verify headers) without using a lot of memory. Signed-off-by: Jens Axboe --- io_u.c | 1 + 1 file changed, 1 insertion(+) diff --git a/io_u.c b/io_u.c index cab09800..93c451cb 100644 --- a/io_u.c +++ b/io_u.c @@ -763,6 +763,7 @@ static void io_completed(struct thread_data *td, struct io_u *io_u, io_u_mark_latency(td, usec); if (td_write(td) && idx == DDIR_WRITE && + td->o.do_verify && td->o.verify != VERIFY_NONE) log_io_piece(td, io_u); -- 2.25.1