From 8fb49f6fa89e30e41dab89422592eeb7506485d3 Mon Sep 17 00:00:00 2001 From: oster Date: Tue, 15 Apr 2008 16:05:43 +0000 Subject: A forced recon read should not default to indicating that the reads for that disk have stopped, since this will bump us out of the normal reconstruction loop prematurely. Fixes the (mostly cosmetic) bug where the reconstruction status values stop updating, and from raidctl it appears that reconstruction has totally stalled (which it actually hasn't -- the reconstruction does complete properly, but not in the normal way). --- sys/dev/raidframe/rf_reconstruct.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/raidframe') diff --git a/sys/dev/raidframe/rf_reconstruct.c b/sys/dev/raidframe/rf_reconstruct.c index 64b06b72d05..b5e03772865 100644 --- a/sys/dev/raidframe/rf_reconstruct.c +++ b/sys/dev/raidframe/rf_reconstruct.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_reconstruct.c,v 1.102 2008/04/14 17:24:50 oster Exp $ */ +/* $NetBSD: rf_reconstruct.c,v 1.103 2008/04/15 16:05:43 oster Exp $ */ /* * Copyright (c) 1995 Carnegie-Mellon University. * All rights reserved. @@ -33,7 +33,7 @@ ************************************************************/ #include -__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.102 2008/04/14 17:24:50 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.103 2008/04/15 16:05:43 oster Exp $"); #include #include @@ -988,6 +988,7 @@ ProcessReconEvent(RF_Raid_t *raidPtr, RF_ReconEvent_t *event) if (!raidPtr->reconControl->error) { submitblocked = rf_SubmitReconBuffer(rbuf, 1, 0); RF_ASSERT(!submitblocked); + retcode = 0; } break; -- cgit