dlm: implement EXPORT_OP_ASYNC_LOCK
authorAlexander Aring <aahringo@redhat.com>
Mon, 13 Nov 2023 21:24:11 +0000 (16:24 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 16 Nov 2023 17:59:19 +0000 (11:59 -0600)
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: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/gfs2/export.c
fs/ocfs2/export.c

index cf40895233f5a88147d4dff2caf79b38794e40d9..ef1013eff9364230e400ef722ce7a225ac1b752a 100644 (file)
@@ -192,5 +192,6 @@ const struct export_operations gfs2_export_ops = {
        .fh_to_parent = gfs2_fh_to_parent,
        .get_name = gfs2_get_name,
        .get_parent = gfs2_get_parent,
+       .flags = EXPORT_OP_ASYNC_LOCK,
 };
 
index eaa8c80ace3cdaf683fc0b4eaf50c250e708f66b..b8b6a191b5cb50de6a1a81f65e78fe1859a6aa1f 100644 (file)
@@ -280,4 +280,5 @@ const struct export_operations ocfs2_export_ops = {
        .fh_to_dentry   = ocfs2_fh_to_dentry,
        .fh_to_parent   = ocfs2_fh_to_parent,
        .get_parent     = ocfs2_get_parent,
+       .flags          = EXPORT_OP_ASYNC_LOCK,
 };