From 25c8cdfd32c3a33d26fbc1949291d8894c49ac96 Mon Sep 17 00:00:00 2001 From: oster Date: Mon, 14 Apr 2008 17:24:50 +0000 Subject: [PATCH] Print out the status value if a reconstruction read fails. Don't print out write promotions during reconstruct unless we are debugging reconstructs. --- sys/dev/raidframe/rf_reconstruct.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sys/dev/raidframe/rf_reconstruct.c b/sys/dev/raidframe/rf_reconstruct.c index a4ea84ada65b..64b06b72d054 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.101 2008/01/26 20:45:06 oster Exp $ */ +/* $NetBSD: rf_reconstruct.c,v 1.102 2008/04/14 17:24:50 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.101 2008/01/26 20:45:06 oster Exp $"); +__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.102 2008/04/14 17:24:50 oster Exp $"); #include #include @@ -1414,7 +1414,7 @@ ReconReadDoneProc(void *arg, int status) raidPtr = ctrl->reconCtrl->reconDesc->raidPtr; if (status) { - printf("raid%d: Recon read failed!\n", raidPtr->raidid); + printf("raid%d: Recon read failed: %d\n", raidPtr->raidid, status); rf_CauseReconEvent(raidPtr, ctrl->col, NULL, RF_REVENT_READ_FAILED); return(0); } @@ -1714,8 +1714,9 @@ rf_ForceOrBlockRecon(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap, /* if the write is sitting in the disk queue, elevate its * priority */ if (rf_DiskIOPromote(&raidPtr->Queues[fcol], psid, which_ru)) - printf("raid%d: promoted write to col %d\n", - raidPtr->raidid, fcol); + if (rf_reconDebug) + printf("raid%d: promoted write to col %d\n", + raidPtr->raidid, fcol); } /* install a callback descriptor to be invoked when recon completes on * this parity stripe. */