1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright (C) 2004 Oracle. All rights reserved.
11 extern spinlock_t dlm_domain_lock;
12 extern struct list_head dlm_domains;
14 static inline int dlm_joined(struct dlm_ctxt *dlm)
18 spin_lock(&dlm_domain_lock);
19 if (dlm->dlm_state == DLM_CTXT_JOINED)
21 spin_unlock(&dlm_domain_lock);
26 static inline int dlm_shutting_down(struct dlm_ctxt *dlm)
30 spin_lock(&dlm_domain_lock);
31 if (dlm->dlm_state == DLM_CTXT_IN_SHUTDOWN)
33 spin_unlock(&dlm_domain_lock);
38 void dlm_fire_domain_eviction_callbacks(struct dlm_ctxt *dlm,