X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=mutex.c;h=16107dd4e5ca796701733354e31e95d5e0c9ae83;hp=a48e37d0f11a947efbdcb6a278c59b82b58b3372;hb=c5dd5d977884648f78c266e9873f667a3ed98bda;hpb=09400a60042ed1d665ab07c9363ffb1591595ed8 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);