diff options
| author | oster <oster@NetBSD.org> | 2004-11-16 16:52:30 +0000 |
|---|---|---|
| committer | oster <oster@NetBSD.org> | 2004-11-16 16:52:30 +0000 |
| commit | e8aee550dd560c5ddb037613afb12d0071baa8b5 (patch) | |
| tree | c3300b648662d5770f59cd117fcec3850857bbd9 /sys/dev/raidframe | |
| parent | d7e754c41da2eeab50196f671b81a1704c3d5f76 (diff) | |
Initialize parity_rewrite_stripes_done to remove the window where
bogus values could be returned at the start of parity rewriting.
Diffstat (limited to 'sys/dev/raidframe')
| -rw-r--r-- | sys/dev/raidframe/rf_netbsdkintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c index 39c329d48dd..a33a6f17bf7 100644 --- a/sys/dev/raidframe/rf_netbsdkintf.c +++ b/sys/dev/raidframe/rf_netbsdkintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_netbsdkintf.c,v 1.183 2004/11/16 16:45:51 oster Exp $ */ +/* $NetBSD: rf_netbsdkintf.c,v 1.184 2004/11/16 16:52:30 oster Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * All rights reserved. @@ -146,7 +146,7 @@ ***********************************************************/ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.183 2004/11/16 16:45:51 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.184 2004/11/16 16:52:30 oster Exp $"); #include <sys/param.h> #include <sys/errno.h> @@ -2544,6 +2544,7 @@ rf_RewriteParityThread(RF_Raid_t *raidPtr) int retcode; int s; + raidPtr->parity_rewrite_stripes_done = 0; raidPtr->parity_rewrite_in_progress = 1; s = splbio(); retcode = rf_RewriteParity(raidPtr); |
