diff options
author | Benjamin Coddington <bcodding@redhat.com> | 2024-09-11 21:42:58 +0200 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-09-12 14:39:05 +0200 |
commit | 2253ab99f2e978d94693d6f63c83aa5b5d4c7839 (patch) | |
tree | f12b88ff402b677c4258597bd716d512abdd4392 /fs/gfs2 | |
parent | fs: Introduce FOP_ASYNC_LOCK (diff) | |
download | linux-2253ab99f2e978d94693d6f63c83aa5b5d4c7839.tar.xz linux-2253ab99f2e978d94693d6f63c83aa5b5d4c7839.zip |
gfs2/ocfs2: set FOP_ASYNC_LOCK
Both GFS2 and OCFS2 use DLM locking, which will allow async lock requests.
Signal this support by setting FOP_ASYNC_LOCK.
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Link: https://lore.kernel.org/r/fc4163dbbf33c58e5a8b8ee8cb8c57e555f53ce5.1726083391.git.bcodding@redhat.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 08982937b5df..b9ed2602287d 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c @@ -1586,6 +1586,7 @@ const struct file_operations gfs2_file_fops = { .splice_write = gfs2_file_splice_write, .setlease = simple_nosetlease, .fallocate = gfs2_fallocate, + .fop_flags = FOP_ASYNC_LOCK, }; const struct file_operations gfs2_dir_fops = { @@ -1598,6 +1599,7 @@ const struct file_operations gfs2_dir_fops = { .lock = gfs2_lock, .flock = gfs2_flock, .llseek = default_llseek, + .fop_flags = FOP_ASYNC_LOCK, }; #endif /* CONFIG_GFS2_FS_LOCKING_DLM */ |