linux-stable/fs/lockd
Alexander Aring 2267b2e845 lockd: introduce safe async lock op
[ Upstream commit 2dd10de8e6 ]

This patch reverts mostly commit 40595cdc93 ("nfs: block notification
on fs with its own ->lock") and introduces an EXPORT_OP_ASYNC_LOCK
export flag to signal that the "own ->lock" implementation supports
async lock requests. The only main user is DLM that is used by GFS2 and
OCFS2 filesystem. Those implement their own lock() implementation and
return FILE_LOCK_DEFERRED as return value. Since commit 40595cdc93
("nfs: block notification on fs with its own ->lock") the DLM
implementation were never updated. This patch should prepare for DLM
to set the EXPORT_OP_ASYNC_LOCK export flag and update the DLM
plock implementation regarding to it.

Acked-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2024-04-10 16:19:29 +02:00
..
Makefile
clnt4xdr.c lockd: set file_lock start and end when decoding nlm4 testargs 2023-03-30 12:47:56 +02:00
clntlock.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
clntproc.c lockd: Make two symbols static 2019-07-03 17:52:09 -04:00
clntxdr.c
host.c lockd: move from strlcpy with unused retval to strscpy 2024-04-10 16:19:15 +02:00
mon.c fs: lockd: avoid possible wrong NULL parameter 2023-09-19 12:22:43 +02:00
netns.h
procfs.c proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
procfs.h
svc.c lockd: drop inappropriate svc_get() from locked_get() 2024-04-10 16:19:28 +02:00
svc4proc.c lockd: set missing fl_flags field when retrieving args 2024-04-10 16:19:24 +02:00
svclock.c lockd: introduce safe async lock op 2024-04-10 16:19:29 +02:00
svcproc.c lockd: set missing fl_flags field when retrieving args 2024-04-10 16:19:24 +02:00
svcshare.c
svcsubs.c lockd: use locks_inode_context helper 2024-04-10 16:19:20 +02:00
svcxdr.h NLM: Fix svcxdr_encode_owner() 2021-09-17 10:35:10 -04:00
xdr.c SUNRPC: Change return value type of .pc_encode 2024-04-10 16:18:54 +02:00
xdr4.c SUNRPC: Change return value type of .pc_encode 2024-04-10 16:18:54 +02:00