NLM - lock failover
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 4 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 4 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [NFS] [Cluster-devel] [PATCH 0/4 Revised] NLM - lock failover
Quoted 15 lines · jlayton at poochiereds.net
Quoted 9 lines · Neil Brown
So if you need that, then I think it really must be implemented by something a lot like
echo -n /path/name >/proc/fs/nfs/nlm_unlock_filesystemThis is something that we could possible teach "fuser -k" about - so it can effectively 'kill' that part of lockd that is accessing a given filesystem. It is useful to failover, but definitely useful beyond failover.
Just a note that I posted a patch ~ a year ago that did precisely that. The interface was a little bit different. I had userspace echoing in a
dev_tnumber, but it wouldn't be too hard to change it to use a pathname instead.
Quoted 7 lines
Subject was:
[PATCH] lockd: add procfs control to cue lockd to release all locks on a device
...if anyone is interested in having me resurrect it.
-- Jeff
http://lkml.org/lkml/2006/4/10/240
Looks like no-one ever replied.
I probably didn't see it: things on linux-kernel that don't have 'nfs' or 'raid' (or a few related strings) in the subject have at best an even chance of me seeing them. I've just added 'lockd' to the list of important strings :-)
I would rather a path name, and would rather it came through the 'nfsd' filesystem, but those are fairly trivial changes.
nlm_traverse_files has changed a bit since then, but it should be easier to unlock based on filesystem with the current code (especially if we made the first arg a void*..).
NeilBrown