summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_openbsdkintf.c
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2004-11-28 02:47:15 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2004-11-28 02:47:15 +0000
commit5201ba6369f3651037481f2148751cc95ab804fe (patch)
tree9c3884549eed532bbbc88f566246ffe71098cc6f /sys/dev/raidframe/rf_openbsdkintf.c
parent4f73e62cdab5664f2099801a68aaf5c13e25a203 (diff)
don't hide the process context in rf_close_component(), since we may
need it later on to do locking stuff. fixes the problem with raid reconstruction, as described in pr 3968. ok mickey@ tedu@ tdeval@
Diffstat (limited to 'sys/dev/raidframe/rf_openbsdkintf.c')
-rw-r--r--sys/dev/raidframe/rf_openbsdkintf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/raidframe/rf_openbsdkintf.c b/sys/dev/raidframe/rf_openbsdkintf.c
index 059e87de4dd..e60386cb935 100644
--- a/sys/dev/raidframe/rf_openbsdkintf.c
+++ b/sys/dev/raidframe/rf_openbsdkintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rf_openbsdkintf.c,v 1.26 2004/02/15 02:45:47 tedu Exp $ */
+/* $OpenBSD: rf_openbsdkintf.c,v 1.27 2004/11/28 02:47:14 pedro Exp $ */
/* $NetBSD: rf_netbsdkintf.c,v 1.109 2001/07/27 03:30:07 oster Exp $ */
/*-
@@ -2603,9 +2603,8 @@ rf_close_component(RF_Raid_t *raidPtr, struct vnode *vp, int auto_configured)
if (vp != NULL) {
if (auto_configured == 1) {
- VOP_CLOSE(vp, FREAD | FWRITE, NOCRED, 0);
+ VOP_CLOSE(vp, FREAD | FWRITE, NOCRED, p);
vrele(vp);
-
} else {
if (VOP_ISLOCKED(vp))
VOP_UNLOCK(vp, 0, p);
@@ -2616,7 +2615,6 @@ rf_close_component(RF_Raid_t *raidPtr, struct vnode *vp, int auto_configured)
}
}
-
void
rf_UnconfigureVnodes(RF_Raid_t *raidPtr)
{