Whamcloud - gitweb
b=16774
authorzhanghc <zhanghc>
Tue, 29 Sep 2009 07:52:16 +0000 (07:52 +0000)
committerzhanghc <zhanghc>
Tue, 29 Sep 2009 07:52:16 +0000 (07:52 +0000)
fix a bug in original patch for the bug

i=oleg.drokin@sun.com

lustre/osc/cache.c

index f8a89a4..119a2ca 100644 (file)
@@ -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 {