Don't crash when using filehash lock before init
authorJens Axboe <axboe@fb.com>
Wed, 2 Apr 2014 18:25:16 +0000 (12:25 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 2 Apr 2014 18:25:16 +0000 (12:25 -0600)
commit45aeca74dc812f33a6617687fc7cb25a1cd2779b
treecca80e1abe8e8d7633ed3975004a393b0110dd13
parent632f415c8d67a1ade18834a0f56d95c508aaa8af
Don't crash when using filehash lock before init

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>
filehash.c