X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=mutex.c;h=16107dd4e5ca796701733354e31e95d5e0c9ae83;hb=8fb5444d99adb65b40f6075c2aabff6bb9941570;hp=a48e37d0f11a947efbdcb6a278c59b82b58b3372;hpb=09400a60042ed1d665ab07c9363ffb1591595ed8;p=fio.git diff --git a/mutex.c b/mutex.c index a48e37d0..16107dd4 100644 --- a/mutex.c +++ b/mutex.c @@ -136,6 +136,7 @@ int fio_mutex_down_timeout(struct fio_mutex *mutex, unsigned int msecs) if (!ret) { mutex->value--; pthread_mutex_unlock(&mutex->lock); + return 0; } pthread_mutex_unlock(&mutex->lock);