* guarantees that all osc references on dlmlock were
* released. osc_dlm_blocking_ast0() relies on that.
*/
- if (lock->cll_state < CLS_FREEING || olck->ols_has_ref) {
- cl_lock_get_trust(lock);
- lu_ref_add_atomic(&lock->cll_reference,
- "ast", cfs_current());
- } else
- olck = NULL;
+ if (lock->cll_state < CLS_FREEING || olck->ols_has_ref) {
+ cl_lock_get_trust(lock);
+ lu_ref_add_atomic(&lock->cll_reference,
+ "ast", current);
+ } else
+ olck = NULL;
}
spin_unlock(&osc_ast_guard);
unlock_res_and_lock(dlm_lock);
static void osc_ast_data_put(const struct lu_env *env, struct osc_lock *olck)
{
- struct cl_lock *lock;
+ struct cl_lock *lock;
- lock = olck->ols_cl.cls_lock;
- lu_ref_del(&lock->cll_reference, "ast", cfs_current());
- cl_lock_put(env, lock);
+ lock = olck->ols_cl.cls_lock;
+ lu_ref_del(&lock->cll_reference, "ast", current);
+ cl_lock_put(env, lock);
}
/**