summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2025-07-23 18:21:53 +0300
committerDavid Teigland <teigland@redhat.com>2025-08-12 19:22:49 +0300
commitbea90085dcb0f9a75748e73d723bde557a5ebf1a (patch)
treeaa16cc467ea360fbbdc48540d95ac6ab78ea09a5 /include
parent6af515c9f3ccec3eb8a262ca86bef2c499d07951 (diff)
downloadlinux-bea90085dcb0f9a75748e73d723bde557a5ebf1a.tar.xz
dlm: use defines for force values in dlm_release_lockspace
Clarify the use of the force parameter by renaming it to "release_option" and adding defines (with descriptions) for each of the accepted values. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/dlm.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/include/linux/dlm.h b/include/linux/dlm.h
index bacda9898f2b..cc7a36244893 100644
--- a/include/linux/dlm.h
+++ b/include/linux/dlm.h
@@ -88,12 +88,36 @@ int dlm_new_lockspace(const char *name, const char *cluster,
int *ops_result, dlm_lockspace_t **lockspace);
/*
+ * dlm_release_lockspace() release_option values:
+ *
+ * DLM_RELEASE_NO_LOCKS returns -EBUSY if any locks (lkb's)
+ * exist in the local lockspace.
+ *
+ * DLM_RELEASE_UNUSED previous value that is no longer used.
+ *
+ * DLM_RELEASE_NORMAL releases the lockspace regardless of any
+ * locks managed in the local lockspace.
+ *
+ * DLM_RELEASE_NO_EVENT release the lockspace regardless of any
+ * locks managed in the local lockspace, and does not submit
+ * a leave event to the cluster manager, so other nodes will
+ * not be notified that the node should be removed from the
+ * list of lockspace members.
+ */
+#define DLM_RELEASE_NO_LOCKS 0
+#define DLM_RELEASE_UNUSED 1
+#define DLM_RELEASE_NORMAL 2
+#define DLM_RELEASE_NO_EVENT 3
+
+/*
* dlm_release_lockspace
*
* Stop a lockspace.
+ *
+ * release_option: see DLM_RELEASE values above.
*/
-int dlm_release_lockspace(dlm_lockspace_t *lockspace, int force);
+int dlm_release_lockspace(dlm_lockspace_t *lockspace, int release_option);
/*
* dlm_lock