From 4981d2de251698ebbe78451bfe4615e0d09a5296 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 14 Mar 2007 08:50:49 +0100 Subject: [PATCH 1/1] When opening a new file, check file limit not total number Signed-off-by: Jens Axboe --- io_u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1