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 b3d847bffe97c308ba7ad0294bb17060f6cf35cb..467059e431bf091b967d6a07a9ef7fc011ec11a6 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;
 }
 
        return 0;
 }