fio: fix aio trim completion latencies
[fio.git] / rwlock.c
index 7d9ad731e2ca0de41fd9f3281e5ab2916f6d7fd1..00e3809890829592e41acc5c7027a2a381c5d532 100644 (file)
--- a/rwlock.c
+++ b/rwlock.c
@@ -28,6 +28,7 @@ void fio_rwlock_unlock(struct fio_rwlock *lock)
 void fio_rwlock_remove(struct fio_rwlock *lock)
 {
        assert(lock->magic == FIO_RWLOCK_MAGIC);
+       pthread_rwlock_destroy(&lock->lock);
        munmap((void *) lock, sizeof(*lock));
 }