X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=filelock.c;h=fd3a6b29e422830f62d35234715b290d57713908;hb=cdf2f9e31efab8dc45215dd4e6ecb3de9149b4a9;hp=cc98aafc07852a369e1db32ed7f50b8b2ff31e7d;hpb=d3d378218e9e03411749b65451b32d7a7466ff61;p=fio.git diff --git a/filelock.c b/filelock.c index cc98aafc..fd3a6b29 100644 --- a/filelock.c +++ b/filelock.c @@ -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; @@ -179,7 +179,7 @@ static bool __fio_lock_file(const char *fname, int trylock) fio_sem_up(&fld->lock); if (!ff) { - assert(!trylock); + assert(trylock); return true; }