Net engine: need to set ->nr_open_files
authorJens Axboe <jens.axboe@oracle.com>
Fri, 2 Mar 2007 07:00:23 +0000 (08:00 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 2 Mar 2007 07:00:23 +0000 (08:00 +0100)
It is marked as SELFOPEN, so it opens it's own files. So it also
needs to increment the open file count as well.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/net.c

index b3d847b..467059e 100644 (file)
@@ -167,6 +167,7 @@ static int fio_netio_accept_connections(struct thread_data *td, int fd,
                }
        }
 
+       td->nr_open_files = accepts;
        return 0;
 }