diff options
author | Jeff Layton <jlayton@kernel.org> | 2023-03-03 07:15:59 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-04-26 09:05:00 -0400 |
commit | f0aa4852e63f9c1cfd4322c770e69d7e6817e906 (patch) | |
tree | 9b7ea5496d613c306a1e041137c903c89e807b03 /include/linux/lockd | |
parent | c88c680c6de5077292667fae4a147fd5a6523479 (diff) | |
download | lwn-f0aa4852e63f9c1cfd4322c770e69d7e6817e906.tar.gz lwn-f0aa4852e63f9c1cfd4322c770e69d7e6817e906.zip |
lockd: move struct nlm_wait to lockd.h
The next patch needs struct nlm_wait in fs/lockd/clntproc.c, so move
the definition to a shared header file. As an added clean-up, drop
the unused b_reclaim field.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux/lockd')
-rw-r--r-- | include/linux/lockd/lockd.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 26c2aed31a0c..de5ad2c2179a 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h @@ -121,7 +121,16 @@ struct nlm_lockowner { uint32_t pid; }; -struct nlm_wait; +/* + * This is the representation of a blocked client lock. + */ +struct nlm_wait { + struct list_head b_list; /* linked list */ + wait_queue_head_t b_wait; /* where to wait on */ + struct nlm_host *b_host; + struct file_lock *b_lock; /* local file lock */ + __be32 b_status; /* grant callback status */ +}; /* * Memory chunk for NLM client RPC request. |