summaryrefslogtreecommitdiff
path: root/sys/isofs
diff options
context:
space:
mode:
authorSebastien Marie <semarie@cvs.openbsd.org>2021-10-19 06:11:46 +0000
committerSebastien Marie <semarie@cvs.openbsd.org>2021-10-19 06:11:46 +0000
commitad99ca7b42f45873f9f031d43db6672230f5fcf0 (patch)
tree91c831f08407f24ec3a81965e0f78f6d89f843ea /sys/isofs
parent4a7f2afe699910a9a6c87a504079c82b2bc4ef01 (diff)
vnode: do not manipulate vnode lock directly
use VOP_LOCK / VOP_UNLOCK wrappers. VOP_LOCK() is prefered over vn_lock() here in order to keep equivalent code. ok mpi@ visa@ (as part of larger diff)
Diffstat (limited to 'sys/isofs')
-rw-r--r--sys/isofs/cd9660/cd9660_node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/cd9660_node.c b/sys/isofs/cd9660/cd9660_node.c
index 38ca5b3e196..bce99d77c22 100644
--- a/sys/isofs/cd9660/cd9660_node.c
+++ b/sys/isofs/cd9660/cd9660_node.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660_node.c,v 1.37 2021/03/05 07:10:06 jsg Exp $ */
+/* $OpenBSD: cd9660_node.c,v 1.38 2021/10/19 06:11:45 semarie Exp $ */
/* $NetBSD: cd9660_node.c,v 1.17 1997/05/05 07:13:57 mycroft Exp $ */
/*-
@@ -140,7 +140,7 @@ cd9660_ihashins(struct iso_node *ip)
*ipp = ip;
/* XXX locking unlock hash list? */
- rrw_enter(&ip->i_lock, RW_WRITE);
+ VOP_LOCK(ITOV(ip), LK_EXCLUSIVE);
return (0);
}