diff options
author | bp <bp@FreeBSD.org> | 2000-10-15 08:01:28 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2000-10-15 08:01:28 +0000 |
commit | 86d96862d160882bab7ab6f56af018d8796870b2 (patch) | |
tree | 0afedc921b5422b5f3d7f4609909313227349275 /sys/nfs | |
parent | 5eab735c6e923f38a26f592cb49e6f518b74c1ed (diff) | |
download | FreeBSD-src-86d96862d160882bab7ab6f56af018d8796870b2.zip FreeBSD-src-86d96862d160882bab7ab6f56af018d8796870b2.tar.gz |
Add missed vop_stdunlock() for fifo's vnops (this affects only v2 mounts).
Give nfs's node lock its own name.
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_node.c | 1 | ||||
-rw-r--r-- | sys/nfs/nfs_vnops.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/nfs/nfs_node.c b/sys/nfs/nfs_node.c index 3299627..f1031ae 100644 --- a/sys/nfs/nfs_node.c +++ b/sys/nfs/nfs_node.c @@ -193,6 +193,7 @@ loop: bcopy((caddr_t)fhp, (caddr_t)np->n_fhp, fhsize); np->n_fhsize = fhsize; lockinit(&np->n_rslock, PVFS | rsflags, "nfrslk", 0, LK_NOPAUSE); + lockinit(&vp->v_lock, PVFS, "nfsnlk", 0, LK_NOPAUSE); *npp = np; if (nfs_node_hash_lock < 0) diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 28fe55b..6d2ec66 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -210,11 +210,13 @@ static struct vnodeopv_entry_desc nfsv2_fifoop_entries[] = { { &vop_fsync_desc, (vop_t *) nfs_fsync }, { &vop_getattr_desc, (vop_t *) nfs_getattr }, { &vop_inactive_desc, (vop_t *) nfs_inactive }, + { &vop_islocked_desc, (vop_t *) vop_stdislocked }, { &vop_lock_desc, (vop_t *) vop_sharedlock }, { &vop_print_desc, (vop_t *) nfs_print }, { &vop_read_desc, (vop_t *) nfsfifo_read }, { &vop_reclaim_desc, (vop_t *) nfs_reclaim }, { &vop_setattr_desc, (vop_t *) nfs_setattr }, + { &vop_unlock_desc, (vop_t *) vop_stdunlock }, { &vop_write_desc, (vop_t *) nfsfifo_write }, { NULL, NULL } }; |