summaryrefslogtreecommitdiff
path: root/filehash.c
AgeCommit message (Collapse)Author
2014-04-02Don't crash when using filehash lock before initJens Axboe
We might be parsing and adding files (which locks the hash lock) before we have setup threads. For that case, don't bother locking, we're serialized at that point. Signed-off-by: Jens Axboe <axboe@fb.com>
2014-04-01Cleanup symbols that should be staticJens Axboe
Run analysis on symbols not used outside of their current file, turn them into statics. Signed-off-by: Jens Axboe <axboe@fb.com>
2014-04-01Properly protect already-allocated file listJens Axboe
We need proper locking around it for thread based setups. Signed-off-by: Jens Axboe <axboe@fb.com>
2012-08-02mutex: make 0/1 FIO_MUTEX_LOCKED and FIO_MUTEX_UNLOCKEDJens Axboe
Makes the API look cleaner. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2011-10-06Add jhash (Jenkins hash) and use that for file namesJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2009-06-03Clean up file flagsJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-09-10filehash: check for NULL ->file_name in hash lookupJens Axboe
Original patch from Shaozhi Shawn Ye <yeshao@google.com>, modified by me to continue the lookup and just skip the file instead of returning NULL. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-06-13Revert "Convert file hash lock to spinlocks"Jens Axboe
This reverts commit 0ec7b3c9a0926e6377bd145206bb9f6a70be610d.
2008-06-12Convert file hash lock to spinlocksJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-06-02Rename list_* function and file to flist_ to avoid conflict with FreeBSDJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-05-23Add job number specific dumping and fix atexit() errorJens Axboe
The threads/process jobs should use _exit() so they don't run the main atexit() function. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-03-03filehash.c: remove debug hash dumpJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-03-01Add file hashing helpersJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>