]> git.ipfire.org Git - thirdparty/linux.git/commit
NLM/NFSD: Fix lock notifications for async-capable filesystems
authorBenjamin Coddington <bcodding@redhat.com>
Wed, 11 Sep 2024 19:42:59 +0000 (15:42 -0400)
committerChristian Brauner <brauner@kernel.org>
Tue, 1 Oct 2024 15:00:18 +0000 (17:00 +0200)
commit7e64c5bc497cf17872b38003307f320e8f077880
treed454b46ccb2dea1b5c7cdb0b669b3f7fa3c348ec
parent2253ab99f2e978d94693d6f63c83aa5b5d4c7839
NLM/NFSD: Fix lock notifications for async-capable filesystems

Instead of checking just the exportfs flag, use the new
locks_can_async_lock() helper which allows NLM and NFSD to once again
support lock notifications for all filesystems which use posix_lock_file().

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Link: https://lore.kernel.org/r/865c40da44af67939e8eb560d17a26c9c50f23e0.1726083391.git.bcodding@redhat.com
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/lockd/svclock.c
fs/nfsd/nfs4state.c