summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>1999-02-23 23:53:37 +0000
committeroster <oster@NetBSD.org>1999-02-23 23:53:37 +0000
commit0d29172defadee7fac19572434ff7e92f833dff6 (patch)
tree94aaa38d0c0c8ffbf4afcc7f1a2c0d35911f4ceb /sys/dev/raidframe
parentc7452585f3922c576a1692a1e7171bbde0270e0a (diff)
Do a VOP_UNLOCK() before a vn_close().
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_copyback.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_copyback.c b/sys/dev/raidframe/rf_copyback.c
index 54a82c2fa04..391c8bc4d72 100644
--- a/sys/dev/raidframe/rf_copyback.c
+++ b/sys/dev/raidframe/rf_copyback.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_copyback.c,v 1.3 1999/02/05 00:06:06 oster Exp $ */
+/* $NetBSD: rf_copyback.c,v 1.4 1999/02/23 23:53:37 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -128,8 +128,9 @@ rf_CopybackReconstructedData(raidPtr)
if (raidPtr->raid_cinfo[frow][fcol].ci_vp != NULL) {
printf("Closed the open device: %s\n",
raidPtr->Disks[frow][fcol].devname);
+ VOP_UNLOCK(vp, 0);
(void) vn_close(raidPtr->raid_cinfo[frow][fcol].ci_vp,
- FREAD | FWRITE, proc->p_ucred, proc);
+ FREAD | FWRITE, proc->p_ucred, proc);
}
printf("About to (re-)open the device: %s\n",
raidPtr->Disks[frow][fcol].devname);