Whamcloud - gitweb
Branch b1_5
authornathan <nathan>
Fri, 19 May 2006 21:52:35 +0000 (21:52 +0000)
committernathan <nathan>
Fri, 19 May 2006 21:52:35 +0000 (21:52 +0000)
b=9862
reset qos penalty at reactivation

lustre/lov/lov_obd.c

index 33dc956..6bb05e5 100644 (file)
@@ -354,6 +354,8 @@ static int lov_set_osc_active(struct lov_obd *lov, struct obd_uuid *uuid,
                 lov->desc.ld_active_tgt_count++;
         else
                 lov->desc.ld_active_tgt_count--;
+        /* remove any old qos penalty */
+        tgt->ltd_qos.ltq_penalty = 0;
 
         EXIT;
  out: