diff options
author | Doug Rabson <dfr@FreeBSD.org> | 2008-06-26 10:21:54 +0000 |
---|---|---|
committer | Doug Rabson <dfr@FreeBSD.org> | 2008-06-26 10:21:54 +0000 |
commit | c675522fc4323ee02bfabe08fb00086132c32708 (patch) | |
tree | 994a214037913bc4e44eaee5070c65aeadf53485 /sys/nfsclient/nfs_node.c | |
parent | 91bc389e54b5909c6fe96dbc593066ec4a5d9e81 (diff) | |
download | src-c675522fc4323ee02bfabe08fb00086132c32708.tar.gz src-c675522fc4323ee02bfabe08fb00086132c32708.zip |
Re-implement the client side of rpc.lockd in the kernel. This implementation
provides the correct semantics for flock(2) style locks which are used by the
lockf(1) command line tool and the pidfile(3) library. It also implements
recovery from server restarts and ensures that dirty cache blocks are written
to the server before obtaining locks (allowing multiple clients to use file
locking to safely share data).
Sponsored by: Isilon Systems
PR: 94256
MFC after: 2 weeks
Notes
Notes:
svn path=/head/; revision=180025
Diffstat (limited to 'sys/nfsclient/nfs_node.c')
-rw-r--r-- | sys/nfsclient/nfs_node.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/nfsclient/nfs_node.c b/sys/nfsclient/nfs_node.c index 7876d3278d60..03e672a8454b 100644 --- a/sys/nfsclient/nfs_node.c +++ b/sys/nfsclient/nfs_node.c @@ -234,6 +234,13 @@ nfs_reclaim(struct vop_reclaim_args *ap) vprint("nfs_reclaim: pushing active", vp); /* + * If the NLM is running, give it a chance to abort pending + * locks. + */ + if (nfs_reclaim_p) + nfs_reclaim_p(ap); + + /* * Destroy the vm object and flush associated pages. */ vnode_destroy_vobject(vp); |