/* this call unlocks all of the partition locks we've set */
int
-VPFullUnlock(void)
+VPFullUnlock_r(void)
{
register struct DiskPartition64 *tp;
for (tp = DiskPartitionList; tp; tp = tp->next) {
return 0;
}
+int
+VPFullUnlock(void)
+{
+ int code;
+ VOL_LOCK;
+ code = VPFullUnlock_r();
+ VOL_UNLOCK;
+ return code;
+}
+
/* get partition id from a name */
afs_int32
PartitionID(char *aname)
if (allTrans == (struct volser_trans *)0)
goto done; /*no active transactions */
for (tt = allTrans; tt; tt = nt) { /*copy relevant info into pntr */
- THOLD(tt); /* do not delete tt while copying info */
nt = tt->next;
- VTRANS_UNLOCK;
VTRANS_OBJ_LOCK(tt);
pntr->tid = tt->tid;
pntr->time = tt->time;
/*set pntr to right position */
}
- TRELE(tt);
- VTRANS_LOCK;
}
done:
VTRANS_UNLOCK;