diff options
| author | oster <oster@NetBSD.org> | 2012-02-20 22:42:05 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2012-02-20 22:42:05 +0000 |
| commit | bef28afa26c3b28aff07c310457f1339751d6580 (patch) | |
| tree | 68bfc6651d7e22f8312dbd7ccde821e2f24bc658 /sys/dev/raidframe | |
| parent | f9076dbf37d9593b7de27e6a967c66d11c09812b (diff) | |
comment, and effectively remove, a DIAGNOSTIC check that
is invalid for RAID5_RS.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_reconmap.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_reconmap.c b/sys/dev/raidframe/rf_reconmap.c index 0202fcbbd03..a363a2fcd8b 100644 --- a/sys/dev/raidframe/rf_reconmap.c +++ b/sys/dev/raidframe/rf_reconmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_reconmap.c,v 1.33 2011/08/31 18:31:02 plunky Exp $ */ +/* $NetBSD: rf_reconmap.c,v 1.34 2012/02/20 22:42:05 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -34,7 +34,7 @@ *************************************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_reconmap.c,v 1.33 2011/08/31 18:31:02 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_reconmap.c,v 1.34 2012/02/20 22:42:05 oster Exp $"); #include "rf_raid.h" #include <sys/time.h> @@ -157,7 +157,14 @@ rf_ReconMapUpdate(RF_Raid_t *raidPtr, RF_ReconMap_t *mapPtr, /* do we need to move the queue? */ while (i > mapPtr->high_ru) { +#if 0 #ifdef DIAGNOSTIC + /* XXX: The check below is not valid for + * RAID5_RS. It is valid for RAID 1 and RAID 5. + * The issue is that we can easily have + * RU_NOTHING entries here too, and those are + * quite correct. + */ if (mapPtr->status[mapPtr->head]!=RU_ALL) { printf("\nraid%d: reconmap incorrect -- working on i %" PRIu64 "\n", raidPtr->raidid, i); @@ -170,6 +177,7 @@ rf_ReconMapUpdate(RF_Raid_t *raidPtr, RF_ReconMap_t *mapPtr, panic("reconmap incorrect"); } #endif +#endif mapPtr->low_ru++; mapPtr->high_ru++; /* initialize "highest" RU status entry, which |
