[sheepdog] [PATCH v2 1/4] object cache: destroy lock for vdi deletion
Liu Yuan
namei.unix at gmail.com
Sun Jan 27 11:33:17 CET 2013
From: Liu Yuan <tailai.ly at taobao.com>
Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
sheep/object_cache.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sheep/object_cache.c b/sheep/object_cache.c
index f934b04..a35281d 100644
--- a/sheep/object_cache.c
+++ b/sheep/object_cache.c
@@ -815,6 +815,7 @@ void object_cache_delete(uint32_t vid)
uatomic_sub(&gcache.capacity, CACHE_OBJECT_SIZE);
}
pthread_rwlock_unlock(&cache->lock);
+ pthread_rwlock_destroy(&cache->lock);
free(cache);
/* Then we free disk */
--
1.7.9.5
More information about the sheepdog
mailing list