Do a VOP_UNLOCK() before a vn_close().
This commit is contained in:
parent
c7452585f3
commit
0d29172def
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user