Whamcloud - gitweb
Branch HEAD
authorrobert.read <robert.read>
Wed, 1 Apr 2009 01:39:22 +0000 (01:39 +0000)
committerrobert.read <robert.read>
Wed, 1 Apr 2009 01:39:22 +0000 (01:39 +0000)
b=18554

Still pending inspections from Shadow and Oleg, but this fixes at least
one of the issues that causing tests to fail and is worth a try.

lustre/lov/lov_obd.c
lustre/tests/replay-single.sh

index e51b0e2..38f921d 100644 (file)
@@ -201,11 +201,6 @@ int lov_connect_obd(struct obd_device *obd, __u32 index, int activate,
         }
 
         lov->lov_tgts[index]->ltd_reap = 0;
-        if (activate) {
-                lov->lov_tgts[index]->ltd_active = 1;
-                lov->desc.ld_active_tgt_count++;
-                lov->lov_tgts[index]->ltd_exp->exp_obd->obd_inactive = 0;
-        }
         CDEBUG(D_CONFIG, "Connected tgt idx %d %s (%s) %sactive\n", index,
                obd_uuid2str(&tgt_uuid), tgt_obd->obd_name, activate ? "":"in");
 
index 3fd3517..4521ad9 100755 (executable)
@@ -1898,6 +1898,19 @@ test_73c() {
 }
 run_test 73c "open(O_CREAT), unlink, replay, reconnect at last_replay, close"
 
+# bug 18554
+test_74() {
+    stop ost1
+    zconf_umount $(hostname) $MOUNT
+    fail $SINGLEMDS
+    zconf_mount $(hostname) $MOUNT
+    mount_facet ost1
+    touch $DIR/$tfile || return 1
+    rm $DIR/$tfile || return 2
+    return 0
+}
+run_test 74 "Ensure applications don't fail waiting for OST reocvery"
+
 test_80a() {
     [ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return 0