summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2018-05-02 02:24:57 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2018-05-02 02:24:57 +0000
commit108f19d0ced75c574baf04aadc2461544271ab61 (patch)
treec74dd7b672cc03aff7b93052e639c38506a52563 /sys/arch
parente04bdc4d8438d7c603ab1f98c7150e02c3c7e42c (diff)
Remove proc from the parameters of vn_lock(). The parameter is
unnecessary because curproc always does the locking. OK mpi@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/dev/vdsp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/sparc64/dev/vdsp.c b/sys/arch/sparc64/dev/vdsp.c
index a08778cc7f1..9d50c2ffe18 100644
--- a/sys/arch/sparc64/dev/vdsp.c
+++ b/sys/arch/sparc64/dev/vdsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vdsp.c,v 1.44 2018/04/28 03:13:04 visa Exp $ */
+/* $OpenBSD: vdsp.c,v 1.45 2018/05/02 02:24:55 visa Exp $ */
/*
* Copyright (c) 2009, 2011, 2014 Mark Kettenis
*
@@ -1011,7 +1011,7 @@ vdsp_readlabel(struct vdsp_softc *sc)
uio.uio_rw = UIO_READ;
uio.uio_procp = p;
- vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY, p);
+ vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY);
err = VOP_READ(sc->sc_vp, &uio, 0, p->p_ucred);
VOP_UNLOCK(sc->sc_vp);
if (err) {
@@ -1041,7 +1041,7 @@ vdsp_writelabel(struct vdsp_softc *sc)
uio.uio_rw = UIO_WRITE;
uio.uio_procp = p;
- vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY, p);
+ vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY);
err = VOP_WRITE(sc->sc_vp, &uio, 0, p->p_ucred);
VOP_UNLOCK(sc->sc_vp);
@@ -1072,7 +1072,7 @@ vdsp_is_iso(struct vdsp_softc *sc)
uio.uio_rw = UIO_READ;
uio.uio_procp = p;
- vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY, p);
+ vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY);
err = VOP_READ(sc->sc_vp, &uio, 0, p->p_ucred);
VOP_UNLOCK(sc->sc_vp);
@@ -1151,7 +1151,7 @@ vdsp_read_desc(struct vdsp_softc *sc, struct vdsk_desc_msg *dm)
uio.uio_rw = UIO_READ;
uio.uio_procp = p;
- vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY, p);
+ vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY);
dm->status = VOP_READ(sc->sc_vp, &uio, 0, p->p_ucred);
VOP_UNLOCK(sc->sc_vp);
@@ -1225,7 +1225,7 @@ vdsp_read_dring(void *arg1, void *arg2)
uio.uio_rw = UIO_READ;
uio.uio_procp = p;
- vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY, p);
+ vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY);
vd->status = VOP_READ(sc->sc_vp, &uio, 0, p->p_ucred);
VOP_UNLOCK(sc->sc_vp);
@@ -1324,7 +1324,7 @@ vdsp_write_dring(void *arg1, void *arg2)
uio.uio_rw = UIO_WRITE;
uio.uio_procp = p;
- vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY, p);
+ vn_lock(sc->sc_vp, LK_EXCLUSIVE | LK_RETRY);
vd->status = VOP_WRITE(sc->sc_vp, &uio, 0, p->p_ucred);
VOP_UNLOCK(sc->sc_vp);