From 6ffa0293caa8532bc95c66ba4ed8cbb74e26cee6 Mon Sep 17 00:00:00 2001 From: zhanghc Date: Tue, 29 Sep 2009 07:52:16 +0000 Subject: [PATCH] b=16774 fix a bug in original patch for the bug i=oleg.drokin@sun.com --- lustre/osc/cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/osc/cache.c b/lustre/osc/cache.c index f8a89a4..119a2ca 100644 --- a/lustre/osc/cache.c +++ b/lustre/osc/cache.c @@ -108,6 +108,7 @@ int cache_add_extent(struct lustre_cache *cache, struct ldlm_res_id *res, lock->l_policy_data.l_extent.start, lock->l_policy_data.l_extent.end, extent->oap_obj_off); + LDLM_LOCK_PUT(lock); RETURN(-ENOLCK); } } else { -- 1.8.3.1