X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre_dlm.h;h=bd3e589b192eeb717b887e53aae6eb53724b2ae5;hp=22d32f4a9d81ca322c266553fd0fb6f1d0e2d723;hb=bfae5a4e4a37e4057200bcc70dbff14e18a00797;hpb=f248d7294dc9a826938da88423722b14b807cf2a diff --git a/lustre/include/lustre_dlm.h b/lustre/include/lustre_dlm.h index 22d32f4..bd3e589 100644 --- a/lustre/include/lustre_dlm.h +++ b/lustre/include/lustre_dlm.h @@ -279,7 +279,7 @@ typedef int (*ldlm_res_policy)(struct ldlm_namespace *, struct ldlm_lock **, void *req_cookie, ldlm_mode_t mode, __u64 flags, void *data); -typedef int (*ldlm_cancel_for_recovery)(struct ldlm_lock *lock); +typedef int (*ldlm_cancel_cbt)(struct ldlm_lock *lock); /** * LVB operations. @@ -500,8 +500,11 @@ struct ldlm_namespace { /** Limit of parallel AST RPC count. */ unsigned ns_max_parallel_ast; - /** Callback to cancel locks before replaying it during recovery. */ - ldlm_cancel_for_recovery ns_cancel_for_recovery; + /** + * Callback to check if a lock is good to be canceled by ELC or + * during recovery. + */ + ldlm_cancel_cbt ns_cancel; /** LDLM lock stats */ struct lprocfs_stats *ns_stats; @@ -558,10 +561,10 @@ static inline int ns_connect_lru_resize(struct ldlm_namespace *ns) } static inline void ns_register_cancel(struct ldlm_namespace *ns, - ldlm_cancel_for_recovery arg) + ldlm_cancel_cbt arg) { - LASSERT(ns != NULL); - ns->ns_cancel_for_recovery = arg; + LASSERT(ns != NULL); + ns->ns_cancel = arg; } struct ldlm_lock;