Nuke a bunch of unused variables:
- node_queue_cond - quiescent_cond - eq_cond - desc->cond - desc->head - diskqueue->numWaiting Nuke rf_print_unable_to_init_cond(). Nuke rf_TerminateDiskQueues prototype from rf_diskqueue.h.
This commit is contained in:
parent
2becc547c7
commit
d3aa064253
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_desc.h,v 1.8 2003/12/29 02:38:17 oster Exp $ */
|
||||
/* $NetBSD: rf_desc.h,v 1.9 2004/01/01 19:27:35 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
|
@ -96,10 +96,8 @@ struct RF_RaidAccessDesc_s {
|
|||
* end of the access */
|
||||
|
||||
RF_RaidAccessDesc_t *next;
|
||||
RF_RaidAccessDesc_t *head;
|
||||
|
||||
RF_DECLARE_MUTEX(mutex) /* these are used to implement blocking I/O */
|
||||
RF_DECLARE_COND(cond)
|
||||
int async_flag;
|
||||
|
||||
RF_Etimer_t timer; /* used for timing this access */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_diskqueue.c,v 1.28 2003/12/31 02:47:58 oster Exp $ */
|
||||
/* $NetBSD: rf_diskqueue.c,v 1.29 2004/01/01 19:27:35 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
|
@ -66,7 +66,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.28 2003/12/31 02:47:58 oster Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_diskqueue.c,v 1.29 2004/01/01 19:27:35 oster Exp $");
|
||||
|
||||
#include <dev/raidframe/raidframevar.h>
|
||||
|
||||
|
@ -172,7 +172,6 @@ rf_ConfigureDiskQueue(RF_Raid_t *raidPtr, RF_DiskQueue_t *diskqueue,
|
|||
diskqueue->maxOutstanding = maxOutstanding;
|
||||
diskqueue->curPriority = RF_IO_NORMAL_PRIORITY;
|
||||
diskqueue->nextLockingOp = NULL;
|
||||
diskqueue->numWaiting = 0;
|
||||
diskqueue->flags = 0;
|
||||
diskqueue->raidPtr = raidPtr;
|
||||
diskqueue->rf_cinfo = &raidPtr->raid_cinfo[c];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_diskqueue.h,v 1.13 2003/12/29 02:38:17 oster Exp $ */
|
||||
/* $NetBSD: rf_diskqueue.h,v 1.14 2004/01/01 19:27:36 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
|
@ -118,8 +118,6 @@ struct RF_DiskQueue_s {
|
|||
* arrived at the head of the
|
||||
* queue & is waiting for
|
||||
* drainage */
|
||||
int numWaiting; /* number of threads waiting on this variable.
|
||||
* user-level only */
|
||||
RF_DiskQueueFlags_t flags; /* terminate, locked */
|
||||
RF_Raid_t *raidPtr; /* associated array */
|
||||
dev_t dev; /* device number for kernel version */
|
||||
|
@ -152,8 +150,6 @@ struct RF_DiskQueue_s {
|
|||
|
||||
int rf_ConfigureDiskQueueSystem(RF_ShutdownList_t ** listp);
|
||||
|
||||
void rf_TerminateDiskQueues(RF_Raid_t * raidPtr);
|
||||
|
||||
int
|
||||
rf_ConfigureDiskQueues(RF_ShutdownList_t ** listp, RF_Raid_t * raidPtr,
|
||||
RF_Config_t * cfgPtr);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_driver.c,v 1.80 2003/12/30 19:28:26 oster Exp $ */
|
||||
/* $NetBSD: rf_driver.c,v 1.81 2004/01/01 19:27:36 oster Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
|
@ -73,7 +73,7 @@
|
|||
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.80 2003/12/30 19:28:26 oster Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_driver.c,v 1.81 2004/01/01 19:27:36 oster Exp $");
|
||||
|
||||
#include "opt_raid_diagnostic.h"
|
||||
|
||||
|
@ -357,7 +357,6 @@ rf_Configure(RF_Raid_t *raidPtr, RF_Config_t *cfgPtr, RF_AutoConfig_t *ac)
|
|||
raidPtr->waitShutdown = 0;
|
||||
|
||||
DO_RAID_MUTEX(&raidPtr->access_suspend_mutex);
|
||||
raidPtr->quiescent_cond = 0;
|
||||
|
||||
raidPtr->waitForReconCond = 0;
|
||||
|
||||
|
@ -460,7 +459,6 @@ rf_AllocRaidAccDesc(RF_Raid_t *raidPtr, RF_IoType_t type,
|
|||
|
||||
desc = pool_get(&rf_rad_pool, PR_WAITOK);
|
||||
simple_lock_init(&desc->mutex);
|
||||
desc->cond = 0;
|
||||
|
||||
if (raidPtr->waitShutdown) {
|
||||
/*
|
||||
|
@ -493,7 +491,6 @@ rf_AllocRaidAccDesc(RF_Raid_t *raidPtr, RF_IoType_t type,
|
|||
desc->callbackFunc = NULL;
|
||||
desc->callbackArg = NULL;
|
||||
desc->next = NULL;
|
||||
desc->head = desc;
|
||||
desc->cleanupList = NULL;
|
||||
rf_MakeAllocList(desc->cleanupList);
|
||||
return (desc);
|
||||
|
@ -905,13 +902,6 @@ rf_print_unable_to_init_mutex(char *file, int line, int rc)
|
|||
file, line, rc);
|
||||
}
|
||||
|
||||
void
|
||||
rf_print_unable_to_init_cond(char *file, int line, int rc)
|
||||
{
|
||||
RF_ERRORMSG3("Unable to init cond file %s line %d rc=%d\n",
|
||||
file, line, rc);
|
||||
}
|
||||
|
||||
void
|
||||
rf_print_unable_to_add_shutdown(char *file, int line, int rc)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_engine.c,v 1.29 2003/12/30 21:59:03 oster Exp $ */
|
||||
/* $NetBSD: rf_engine.c,v 1.30 2004/01/01 19:27:36 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
|
@ -55,7 +55,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.29 2003/12/30 21:59:03 oster Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.30 2004/01/01 19:27:36 oster Exp $");
|
||||
|
||||
#include <sys/errno.h>
|
||||
|
||||
|
@ -128,7 +128,6 @@ rf_ConfigureEngine(RF_ShutdownList_t **listp, RF_Raid_t *raidPtr,
|
|||
int rc;
|
||||
|
||||
rf_mutex_init(&raidPtr->node_queue_mutex);
|
||||
raidPtr->node_queue_cond = 0;
|
||||
raidPtr->node_queue = NULL;
|
||||
raidPtr->dags_in_flight = 0;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_general.h,v 1.11 2003/04/09 00:28:28 thorpej Exp $ */
|
||||
/* $NetBSD: rf_general.h,v 1.12 2004/01/01 19:27:36 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
|
@ -52,7 +52,6 @@
|
|||
void rf_print_panic_message(int, char *);
|
||||
void rf_print_assert_panic_message(int, char *, char *);
|
||||
void rf_print_unable_to_init_mutex(char *, int, int);
|
||||
void rf_print_unable_to_init_cond(char *, int, int);
|
||||
void rf_print_unable_to_add_shutdown(char *, int, int);
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_raid.h,v 1.22 2003/12/30 22:56:40 oster Exp $ */
|
||||
/* $NetBSD: rf_raid.h,v 1.23 2004/01/01 19:27:36 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
|
@ -186,7 +186,6 @@ struct RF_Raid_s {
|
|||
* Array-quiescence stuff
|
||||
*/
|
||||
RF_DECLARE_MUTEX(access_suspend_mutex)
|
||||
RF_DECLARE_COND(quiescent_cond)
|
||||
RF_IoCount_t accesses_suspended;
|
||||
RF_IoCount_t accs_in_flight;
|
||||
int access_suspend_release;
|
||||
|
@ -213,7 +212,6 @@ struct RF_Raid_s {
|
|||
* Engine thread control
|
||||
*/
|
||||
RF_DECLARE_MUTEX(node_queue_mutex)
|
||||
RF_DECLARE_COND(node_queue_cond)
|
||||
RF_DagNode_t *node_queue;
|
||||
RF_Thread_t parity_rewrite_thread;
|
||||
RF_Thread_t copyback_thread;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_reconstruct.h,v 1.11 2003/12/30 23:23:17 oster Exp $ */
|
||||
/* $NetBSD: rf_reconstruct.h,v 1.12 2004/01/01 19:27:36 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
|
@ -132,8 +132,6 @@ struct RF_ReconCtrl_s {
|
|||
* events */
|
||||
RF_DECLARE_MUTEX(eq_mutex) /* mutex for locking event
|
||||
* queue */
|
||||
RF_DECLARE_COND(eq_cond) /* condition variable for
|
||||
* signalling recon events */
|
||||
int eq_count; /* debug only */
|
||||
|
||||
/* reconstruction buffer management */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_reconutil.c,v 1.19 2003/12/30 21:59:03 oster Exp $ */
|
||||
/* $NetBSD: rf_reconutil.c,v 1.20 2004/01/01 19:27:36 oster Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Carnegie-Mellon University.
|
||||
* All rights reserved.
|
||||
|
@ -31,7 +31,7 @@
|
|||
********************************************/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_reconutil.c,v 1.19 2003/12/30 21:59:03 oster Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_reconutil.c,v 1.20 2004/01/01 19:27:36 oster Exp $");
|
||||
|
||||
#include <dev/raidframe/raidframevar.h>
|
||||
|
||||
|
@ -125,7 +125,6 @@ rf_MakeReconControl(RF_RaidReconDesc_t *reconDesc,
|
|||
/* initialize the event queue */
|
||||
simple_lock_init(&reconCtrlPtr->eq_mutex);
|
||||
|
||||
reconCtrlPtr->eq_cond = 0;
|
||||
reconCtrlPtr->eventQueue = NULL;
|
||||
reconCtrlPtr->eq_count = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue