req->rq_arrival_time.tv_sec +
cfs_fail_val ?: 3);
/* Put the lock to the waiting list and force the cancel */
- ldlm_set_ast_sent(lock);
+ (lock->l_flags |= LDLM_FL_AST_SENT);
}
/*
ldlm_lock2handle(lock, &lockh);
rc = ldlm_cli_cancel(&lockh,
- ldlm_is_atomic_cb(lock) ? 0 : LCF_ASYNC);
+ (lock->l_flags & LDLM_FL_ATOMIC_CB) ? 0 : LCF_ASYNC);
if (rc < 0) {
CDEBUG(D_INODE, "ldlm_cli_cancel: %d\n", rc);
RETURN(rc);
/* Check if the lease open lease has already canceled */
lock_res_and_lock(lease);
- lease_broken = ldlm_is_cancel(lease);
+ lease_broken = (lease->l_flags & LDLM_FL_CANCEL);
unlock_res_and_lock(lease);
LDLM_DEBUG(lease, DFID " lease broken? %d",
/* Check if the lease open lease has already canceled */
lock_res_and_lock(lease);
- lease_broken = ldlm_is_cancel(lease);
+ lease_broken = (lease->l_flags & LDLM_FL_CANCEL);
unlock_res_and_lock(lease);
LDLM_DEBUG(lease, DFID " lease broken? %d",
/* Check if the lease open lease has already canceled */
lock_res_and_lock(lease);
- lease_broken = ldlm_is_cancel(lease);
+ lease_broken = (lease->l_flags & LDLM_FL_CANCEL);
unlock_res_and_lock(lease);
LDLM_DEBUG(lease, DFID " lease broken? %d",
lock = ldlm_handle2lock(&lhl->mlh_rreg_lh);
LASSERT(lock != NULL);
lock_res_and_lock(lock);
- ldlm_set_atomic_cb(lock);
+ (lock->l_flags |= LDLM_FL_ATOMIC_CB);
unlock_res_and_lock(lock);
ldlm_lock_put(lock);
}
/* check if the lease was already canceled */
lock_res_and_lock(lease);
- rc = ldlm_is_cancel(lease);
+ rc = (lease->l_flags & LDLM_FL_CANCEL);
unlock_res_and_lock(lease);
if (rc) {
GOTO(out_put_lease, rc = -EBUSY);
lock_res_and_lock(lease);
- lease_broken = ldlm_is_cancel(lease);
+ lease_broken = (lease->l_flags & LDLM_FL_CANCEL);
unlock_res_and_lock(lease);
if (lease_broken)
GOTO(out_unlock, rc = -EBUSY);