Commit 0c086997 authored by Alexander Aring's avatar Alexander Aring Committed by David Teigland

dlm: implement EXPORT_OP_ASYNC_LOCK

This patch is activating the EXPORT_OP_ASYNC_LOCK export flag to
signal lockd that both filesystems are able to handle async lock
requests. The cluster filesystems gfs2 and ocfs2 will redirect their
lock requests to DLMs plock implementation that can handle async lock
requests.
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 6bd4a2bf
...@@ -192,5 +192,6 @@ const struct export_operations gfs2_export_ops = { ...@@ -192,5 +192,6 @@ const struct export_operations gfs2_export_ops = {
.fh_to_parent = gfs2_fh_to_parent, .fh_to_parent = gfs2_fh_to_parent,
.get_name = gfs2_get_name, .get_name = gfs2_get_name,
.get_parent = gfs2_get_parent, .get_parent = gfs2_get_parent,
.flags = EXPORT_OP_ASYNC_LOCK,
}; };
...@@ -280,4 +280,5 @@ const struct export_operations ocfs2_export_ops = { ...@@ -280,4 +280,5 @@ const struct export_operations ocfs2_export_ops = {
.fh_to_dentry = ocfs2_fh_to_dentry, .fh_to_dentry = ocfs2_fh_to_dentry,
.fh_to_parent = ocfs2_fh_to_parent, .fh_to_parent = ocfs2_fh_to_parent,
.get_parent = ocfs2_get_parent, .get_parent = ocfs2_get_parent,
.flags = EXPORT_OP_ASYNC_LOCK,
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment