Whamcloud - gitweb
LU-12967 tgt: clean up sync_on_cancel references
[fs/lustre-release.git] / lustre / target / tgt_handler.c
index 4a6443e..bc3f7eb 100644 (file)
@@ -1280,8 +1280,8 @@ static int tgt_blocking_ast(struct ldlm_lock *lock, struct ldlm_lock_desc *desc,
 
        if (flag == LDLM_CB_CANCELING &&
            (lock->l_granted_mode & (LCK_EX | LCK_PW | LCK_GROUP)) &&
-           (tgt->lut_sync_lock_cancel == ALWAYS_SYNC_ON_CANCEL ||
-            (tgt->lut_sync_lock_cancel == BLOCKING_SYNC_ON_CANCEL &&
+           (tgt->lut_sync_lock_cancel == SYNC_LOCK_CANCEL_ALWAYS ||
+            (tgt->lut_sync_lock_cancel == SYNC_LOCK_CANCEL_BLOCKING &&
              ldlm_is_cbpending(lock))) &&
            ((exp_connect_flags(lock->l_export) & OBD_CONNECT_MDS_MDS) ||
             lock->l_resource->lr_type == LDLM_EXTENT)) {