Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

raid(4) users, please test this

0 views
Skip to first unread message

Pedro Martelletto

unread,
Sep 15, 2005, 10:37:37 AM9/15/05
to
It'd be greatly appreciated if raid(4) users could test the diff below.
If anyone needs more information as to what it does, please don't
hesitate in contacting me privately.

-p.

Index: rf_openbsdkintf.c
===================================================================
RCS file: /cvs/src/sys/dev/raidframe/rf_openbsdkintf.c,v
retrieving revision 1.27
diff -u -r1.27 rf_openbsdkintf.c
--- rf_openbsdkintf.c 28 Nov 2004 02:47:14 -0000 1.27
+++ rf_openbsdkintf.c 14 Sep 2005 16:52:01 -0000
@@ -2596,18 +2596,15 @@
void
rf_close_component(RF_Raid_t *raidPtr, struct vnode *vp, int auto_configured)
{
- struct proc *p;
-
- if ((p = raidPtr->engine_thread) == NULL)
- p = curproc;
+ struct proc *p = curproc;

if (vp != NULL) {
if (auto_configured == 1) {
- VOP_CLOSE(vp, FREAD | FWRITE, NOCRED, p);
+ /* component was opened by rf_find_raid_components() */
+ VOP_CLOSE(vp, FREAD | FWRITE, NOCRED, NULL);
vrele(vp);
} else {
- if (VOP_ISLOCKED(vp))
- VOP_UNLOCK(vp, 0, p);
+ /* component was opened by raidlookup() */
(void) vn_close(vp, FREAD | FWRITE, p->p_ucred, p);
}
} else {

0 new messages