Whamcloud - gitweb
b=19188
authorjxiong <jxiong>
Mon, 22 Jun 2009 18:34:53 +0000 (18:34 +0000)
committerjxiong <jxiong>
Mon, 22 Jun 2009 18:34:53 +0000 (18:34 +0000)
r=pravin,rread

It is bad to access the ols_lock if the lock is detached.

lustre/osc/osc_lock.c

index ddf9a34..c9d8e31 100644 (file)
@@ -1360,7 +1360,6 @@ static int osc_lock_use(const struct lu_env *env,
                 lock = slice->cls_lock;
                 LASSERT(lock->cll_state == CLS_CACHED);
                 LASSERT(lock->cll_users > 0);
-                LASSERT(olck->ols_lock->l_flags & LDLM_FL_CBPENDING);
                 /* set a flag for osc_dlm_blocking_ast0() to signal the
                  * lock.*/
                 olck->ols_ast_wait = 1;