Skip to content

Commit 0c08699

Browse files
Alexander Aringteigland
authored andcommitted
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: Jeff Layton <jlayton@kernel.org> Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
1 parent 6bd4a2b commit 0c08699

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

fs/gfs2/export.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,5 +192,6 @@ const struct export_operations gfs2_export_ops = {
192192
.fh_to_parent = gfs2_fh_to_parent,
193193
.get_name = gfs2_get_name,
194194
.get_parent = gfs2_get_parent,
195+
.flags = EXPORT_OP_ASYNC_LOCK,
195196
};
196197

fs/ocfs2/export.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,4 +280,5 @@ const struct export_operations ocfs2_export_ops = {
280280
.fh_to_dentry = ocfs2_fh_to_dentry,
281281
.fh_to_parent = ocfs2_fh_to_parent,
282282
.get_parent = ocfs2_get_parent,
283+
.flags = EXPORT_OP_ASYNC_LOCK,
283284
};

0 commit comments

Comments
 (0)