summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/dlmconstants.h
diff options
context:
space:
mode:
authorDavid Teigland2014-10-17 18:05:50 +0200
committerDavid Teigland2014-11-19 21:48:02 +0100
commit2ab4bd8ea3a6954bc79a9bbeb291cd6c2d6213a7 (patch)
treec15e4590760ba76c29f2fca34c1b1edf82186cbd /include/uapi/linux/dlmconstants.h
parentLinux 3.18-rc4 (diff)
downloadkernel-qcow2-linux-2ab4bd8ea3a6954bc79a9bbeb291cd6c2d6213a7.tar.gz
kernel-qcow2-linux-2ab4bd8ea3a6954bc79a9bbeb291cd6c2d6213a7.tar.xz
kernel-qcow2-linux-2ab4bd8ea3a6954bc79a9bbeb291cd6c2d6213a7.zip
dlm: adopt orphan locks
A process may exit, leaving an orphan lock in the lockspace. This adds the capability for another process to acquire the orphan lock. Acquiring the orphan just moves the lock from the orphan list onto the acquiring process's list of locks. An adopting process must specify the resource name and mode of the lock it wants to adopt. If a matching lock is found, the lock is moved to the caller's 's list of locks, and the lkid of the lock is returned like the lkid of a new lock. If an orphan with a different mode is found, then -EAGAIN is returned. If no orphan lock is found on the resource, then -ENOENT is returned. No async completion is used because the result is immediately available. Also, when orphans are purged, allow a zero nodeid to refer to the local nodeid so the caller does not need to look up the local nodeid. Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'include/uapi/linux/dlmconstants.h')
-rw-r--r--include/uapi/linux/dlmconstants.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/dlmconstants.h b/include/uapi/linux/dlmconstants.h
index 47bf08dc7566..2857bdc5b27b 100644
--- a/include/uapi/linux/dlmconstants.h
+++ b/include/uapi/linux/dlmconstants.h
@@ -114,7 +114,7 @@
*
* DLM_LKF_ORPHAN
*
- * not yet implemented
+ * Acquire an orphan lock.
*
* DLM_LKF_ALTPR
*