Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe continueFunc and continueArg arn't used. ...
details: https://anonhg.NetBSD.org/src/rev/653d420d5778
branches: trunk
changeset: 571278:653d420d5778
user: oster <oster%NetBSD.org@localhost>
date: Mon Nov 15 17:16:28 2004 +0000
description:
continueFunc and continueArg arn't used. Turf. Simplify calls to
rf_GetNextReconEvent().
diffstat:
sys/dev/raidframe/rf_reconstruct.c | 8 ++++----
sys/dev/raidframe/rf_reconstruct.h | 6 +-----
sys/dev/raidframe/rf_revent.c | 11 +++--------
sys/dev/raidframe/rf_revent.h | 6 ++----
4 files changed, 10 insertions(+), 21 deletions(-)
diffs (115 lines):
diff -r ecd5af37bec5 -r 653d420d5778 sys/dev/raidframe/rf_reconstruct.c
--- a/sys/dev/raidframe/rf_reconstruct.c Mon Nov 15 16:33:41 2004 +0000
+++ b/sys/dev/raidframe/rf_reconstruct.c Mon Nov 15 17:16:28 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_reconstruct.c,v 1.76 2004/03/18 16:54:54 oster Exp $ */
+/* $NetBSD: rf_reconstruct.c,v 1.77 2004/11/15 17:16:28 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -33,7 +33,7 @@
************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.76 2004/03/18 16:54:54 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.77 2004/11/15 17:16:28 oster Exp $");
#include <sys/time.h>
#include <sys/buf.h>
@@ -636,7 +636,7 @@
while (reconDesc->numDisksDone < raidPtr->numCol - 1) {
- event = rf_GetNextReconEvent(reconDesc, (void (*) (void *)) rf_ContinueReconstructFailedDisk, reconDesc);
+ event = rf_GetNextReconEvent(reconDesc);
RF_ASSERT(event);
if (ProcessReconEvent(raidPtr, event))
@@ -670,7 +670,7 @@
while (rf_UnitsLeftToReconstruct(raidPtr->reconControl->reconMap) > 0) {
- event = rf_GetNextReconEvent(reconDesc, (void (*) (void *)) rf_ContinueReconstructFailedDisk, reconDesc);
+ event = rf_GetNextReconEvent(reconDesc);
RF_ASSERT(event);
(void) ProcessReconEvent(raidPtr, event); /* ignore return code */
diff -r ecd5af37bec5 -r 653d420d5778 sys/dev/raidframe/rf_reconstruct.h
--- a/sys/dev/raidframe/rf_reconstruct.h Mon Nov 15 16:33:41 2004 +0000
+++ b/sys/dev/raidframe/rf_reconstruct.h Mon Nov 15 17:16:28 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_reconstruct.h,v 1.17 2004/03/18 16:54:54 oster Exp $ */
+/* $NetBSD: rf_reconstruct.h,v 1.18 2004/11/15 17:16:28 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -165,10 +165,6 @@
/* performance monitoring */
struct timeval starttime; /* recon start time */
-
- void (*continueFunc) (void *); /* function to call when io
- * returns */
- void *continueArg; /* argument for Func */
};
/* the default priority for reconstruction accesses */
#define RF_IO_RECON_PRIORITY RF_IO_LOW_PRIORITY
diff -r ecd5af37bec5 -r 653d420d5778 sys/dev/raidframe/rf_revent.c
--- a/sys/dev/raidframe/rf_revent.c Mon Nov 15 16:33:41 2004 +0000
+++ b/sys/dev/raidframe/rf_revent.c Mon Nov 15 17:16:28 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_revent.c,v 1.18 2004/03/07 22:15:19 oster Exp $ */
+/* $NetBSD: rf_revent.c,v 1.19 2004/11/15 17:16:28 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_revent.c,v 1.18 2004/03/07 22:15:19 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_revent.c,v 1.19 2004/11/15 17:16:28 oster Exp $");
#include <sys/errno.h>
@@ -73,8 +73,7 @@
* or will return an event if it is not */
RF_ReconEvent_t *
-rf_GetNextReconEvent(RF_RaidReconDesc_t *reconDesc,
- void (*continueFunc)(void *), void *continueArg)
+rf_GetNextReconEvent(RF_RaidReconDesc_t *reconDesc)
{
RF_Raid_t *raidPtr = reconDesc->raidPtr;
RF_ReconCtrl_t *rctrl = raidPtr->reconControl;
@@ -84,10 +83,6 @@
/* q null and count==0 must be equivalent conditions */
RF_ASSERT((rctrl->eventQueue == NULL) == (rctrl->eq_count == 0));
- rctrl->continueFunc = continueFunc;
- rctrl->continueArg = continueArg;
-
-
/* mpsleep timeout value: secs = timo_val/hz. 'ticks' here is
defined as cycle-counter ticks, not softclock ticks */
diff -r ecd5af37bec5 -r 653d420d5778 sys/dev/raidframe/rf_revent.h
--- a/sys/dev/raidframe/rf_revent.h Mon Nov 15 16:33:41 2004 +0000
+++ b/sys/dev/raidframe/rf_revent.h Mon Nov 15 17:16:28 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_revent.h,v 1.6 2003/12/29 02:38:18 oster Exp $ */
+/* $NetBSD: rf_revent.h,v 1.7 2004/11/15 17:16:28 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -39,9 +39,7 @@
int rf_ConfigureReconEvent(RF_ShutdownList_t ** listp);
-RF_ReconEvent_t *rf_GetNextReconEvent(RF_RaidReconDesc_t * reconDesc,
- void (*continueFunc) (void *),
- void *continueArg);
+RF_ReconEvent_t *rf_GetNextReconEvent(RF_RaidReconDesc_t * reconDesc);
void rf_CauseReconEvent(RF_Raid_t * raidPtr, RF_RowCol_t col,
void *arg, RF_Revent_t type);
Home |
Main Index |
Thread Index |
Old Index