Increase MAX_FILELOCKS for highly parallel IO test
authorEarle F. Philhower, III <earlephilhower@yahoo.com>
Tue, 8 Oct 2019 23:13:02 +0000 (16:13 -0700)
committerEarle F. Philhower, III <earlephilhower@yahoo.com>
Tue, 8 Oct 2019 23:13:02 +0000 (16:13 -0700)
When running hundreds of threads and collecting CLAT, SLAT, IOS on a
per-thread basis, FIO can need a lot of file locks to complete.  When
it can't get them, it gives the cryptic error message:
> fio: filelock.c:182: __fio_lock_file: Assertion `!trylock' failed.

Bump the maximum from 128 to 1024 to give headroom for high core count,
high thread count testing.

filelock.c

index cc98aafc07852a369e1db32ed7f50b8b2ff31e7d..7e92f63d9c668b34ea45845b363e20ff02e0d357 100644 (file)
@@ -22,7 +22,7 @@ struct fio_filelock {
        unsigned int references;
 };
 
-#define MAX_FILELOCKS  128
+#define MAX_FILELOCKS  1024
        
 static struct filelock_data {
        struct flist_head list;