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>
This commit is contained in:
Benjamin Coddington 2024-09-11 15:42:59 -04:00 • committed by Christian Brauner
commit 7e64c5bc49
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
2 changed files with 7 additions and 19 deletions