summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_copyback.c3
-rw-r--r--sys/dev/raidframe/rf_driver.c7
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/raidframe/rf_copyback.c b/sys/dev/raidframe/rf_copyback.c
index bcfb0beb44f..7a4b269405d 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.5 1999/02/27 01:48:13 oster Exp $ */
+/* $NetBSD: rf_copyback.c,v 1.6 1999/02/27 03:43:20 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -131,6 +131,7 @@ rf_CopybackReconstructedData(raidPtr)
VOP_UNLOCK(raidPtr->raid_cinfo[frow][fcol].ci_vp, 0);
(void) vn_close(raidPtr->raid_cinfo[frow][fcol].ci_vp,
FREAD | FWRITE, proc->p_ucred, proc);
+ raidPtr->raid_cinfo[frow][fcol].ci_vp = NULL;
}
printf("About to (re-)open the device: %s\n",
raidPtr->Disks[frow][fcol].devname);
diff --git a/sys/dev/raidframe/rf_driver.c b/sys/dev/raidframe/rf_driver.c
index db898e1cc06..37db07c8798 100644
--- a/sys/dev/raidframe/rf_driver.c
+++ b/sys/dev/raidframe/rf_driver.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_driver.c,v 1.7 1999/02/23 23:55:29 oster Exp $ */
+/* $NetBSD: rf_driver.c,v 1.8 1999/02/27 03:43:20 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -76,9 +76,6 @@
#include "rf_nwayxor.h"
#include "rf_debugprint.h"
#include "rf_copyback.h"
-#if !defined(__NetBSD__)
-#include "rf_camlayer.h"
-#endif
#include "rf_driver.h"
#include "rf_options.h"
#include "rf_shutdown.h"
@@ -301,6 +298,7 @@ rf_UnconfigureVnodes( raidPtr )
VOP_UNLOCK(raidPtr->raid_cinfo[r][c].ci_vp, 0);
(void) vn_close(raidPtr->raid_cinfo[r][c].ci_vp,
FREAD | FWRITE, p->p_ucred, p);
+ raidPtr->raid_cinfo[r][c].ci_vp = NULL;
} else {
printf("vnode was NULL\n");
}
@@ -313,6 +311,7 @@ rf_UnconfigureVnodes( raidPtr )
VOP_UNLOCK(raidPtr->raid_cinfo[0][raidPtr->numCol + r].ci_vp, 0);
(void) vn_close(raidPtr->raid_cinfo[0][raidPtr->numCol + r].ci_vp,
FREAD | FWRITE, p->p_ucred, p);
+ raidPtr->raid_cinfo[0][raidPtr->numCol + r].ci_vp = NULL;
} else {
printf("vnode was NULL\n");
}