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
282 nlm_host_match_fn_t match);282 nlm_host_match_fn_t match);
283void nlmsvc_grant_reply(struct nlm_cookie *, __be32);283void nlmsvc_grant_reply(struct nlm_cookie *, __be32);
284void nlmsvc_release_call(struct nlm_rqst *);284void nlmsvc_release_call(struct nlm_rqst *);
285void nlmsvc_locks_init_private(struct file_lock *, struct nlm_host *, pid_t);
285 286
286/*287/*
287 * File handling for the server personality288 * File handling for the server personality
@@ -289,6 +290,7 @@ void nlmsvc_release_call(struct nlm_rqst *); · 1 unmodified line
289__be32 nlm_lookup_file(struct svc_rqst *, struct nlm_file **,290__be32 nlm_lookup_file(struct svc_rqst *, struct nlm_file **,
290 struct nfs_fh *);291 struct nfs_fh *);
291void nlm_release_file(struct nlm_file *);292void nlm_release_file(struct nlm_file *);
293void nlmsvc_release_lockowner(struct nlm_lock *);
292void nlmsvc_mark_resources(struct net *);294void nlmsvc_mark_resources(struct net *);
293void nlmsvc_free_host_resources(struct nlm_host *);295void nlmsvc_free_host_resources(struct nlm_host *);
294void nlmsvc_invalidate_all(void);296void 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