History

lockd: Convert NLM service fl_owner to nlm_lockowner

Do as the NLM client: allocate and track a struct nlm_lockowner for use as the fl_owner for locks created by the NLM sever. This allows us to keep the svid within this structure for matching locks, and will allow us to track the pid of lockd in a future patch. It should also allow easier reference of the nlm_host in conflicting locks, and simplify lock hashing and comparison.

Benjamin Coddington committed 7 years ago

Commit 89e0edf1 parent 9de3ec17 files · +123 −5Browse files

Showing the changes to include/linux (1 of 7 files). Show all

Unified · Split

include/linux/lockd/lockd.h+2−0
@@ -282,6 +282,7 @@ void nlmsvc_traverse_blocks(struct nlm_host *, struct nlm_file *, · 281 unmodified lines
282282 nlm_host_match_fn_t match);
283283 void nlmsvc_grant_reply(struct nlm_cookie *, __be32);
284284 void nlmsvc_release_call(struct nlm_rqst *);
285+void nlmsvc_locks_init_private(struct file_lock *, struct nlm_host *, pid_t);
285286
286287 /*
287288 * File handling for the server personality
@@ -289,6 +290,7 @@ void nlmsvc_release_call(struct nlm_rqst *); · 1 unmodified line
289290 __be32 nlm_lookup_file(struct svc_rqst *, struct nlm_file **,
290291 struct nfs_fh *);
291292 void nlm_release_file(struct nlm_file *);
293+void nlmsvc_release_lockowner(struct nlm_lock *);
292294 void nlmsvc_mark_resources(struct net *);
293295 void nlmsvc_free_host_resources(struct nlm_host *);
294296 void nlmsvc_invalidate_all(void);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t