From: Jens Axboe Date: Wed, 14 Mar 2007 07:50:49 +0000 (+0100) Subject: When opening a new file, check file limit not total number X-Git-Tag: fio-1.14~7 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=4981d2de251698ebbe78451bfe4615e0d09a5296 When opening a new file, check file limit not total number Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index e96d4956..8f0cdff7 100644 --- a/io_u.c +++ b/io_u.c @@ -481,7 +481,7 @@ set_file: * probably not the right place to do this, but see * if we need to open a new file */ - if (td->nr_open_files < td->nr_files && + if (td->nr_open_files < td->open_files && td->open_files != td->nr_files) { f = find_next_new_file(td);