rf_FlushAccessTraceBuf goes bye-bye.

This commit is contained in:
oster 2002-09-14 18:07:31 +00:00
parent dc71a69c6a
commit f41ac02382
2 changed files with 4 additions and 16 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_acctrace.c,v 1.8 2002/09/14 17:53:57 oster Exp $ */
/* $NetBSD: rf_acctrace.c,v 1.9 2002/09/14 18:07:31 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -34,7 +34,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: rf_acctrace.c,v 1.8 2002/09/14 17:53:57 oster Exp $");
__KERNEL_RCSID(0, "$NetBSD: rf_acctrace.c,v 1.9 2002/09/14 18:07:31 oster Exp $");
#include <sys/stat.h>
#include <sys/types.h>
@ -65,7 +65,7 @@ RF_DECLARE_MUTEX(rf_tracing_mutex)
{
if (rf_accessTraceBufSize) {
if (accessTraceBufCount)
rf_FlushAccessTraceBuf();
accessTraceBufCount = 0;
RF_Free(access_tracebuf, rf_accessTraceBufSize * sizeof(RF_AccTraceEntry_t));
}
rf_mutex_destroy(&rf_tracing_mutex);
@ -150,14 +150,3 @@ rf_LogTraceRec(raid, rec)
acc->user_reccount++;
}
}
/* assumes the tracing mutex is locked at entry. In order to allow this to be called
* from interrupt context, we don't do any copyouts here, but rather just wake trace
* buffer collector thread.
*/
void
rf_FlushAccessTraceBuf()
{
accessTraceBufCount = 0;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_acctrace.h,v 1.4 2001/10/04 15:58:51 oster Exp $ */
/* $NetBSD: rf_acctrace.h,v 1.5 2002/09/14 18:07:31 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -128,6 +128,5 @@ RF_DECLARE_EXTERN_MUTEX(rf_tracing_mutex)
int rf_ConfigureAccessTrace(RF_ShutdownList_t ** listp);
void rf_LogTraceRec(RF_Raid_t * raid, RF_AccTraceEntry_t * rec);
void rf_FlushAccessTraceBuf(void);
#endif /* !_RF__RF_ACCTRACE_H_ */