Whamcloud - gitweb
Branch b_release_1_8_1
authorjohann <johann>
Wed, 6 May 2009 13:44:10 +0000 (13:44 +0000)
committerjohann <johann>
Wed, 6 May 2009 13:44:10 +0000 (13:44 +0000)
b=18946
i=shadow
i=johann (patch from tappro)

don't cleanup namespace during lock replay, that may lead to deadlocks.

lustre/ptlrpc/client.c
lustre/tests/replay-vbr.sh

index 9e77607..f110862 100644 (file)
@@ -2197,7 +2197,6 @@ static int ptlrpc_replay_interpret(struct ptlrpc_request *req,
                 DEBUG_REQ(D_WARNING, req, "Version mismatch during replay\n");
                 spin_lock(&imp->imp_lock);
                 imp->imp_vbr_failed = 1;
-                imp->imp_no_lock_replay = 1;
                 spin_unlock(&imp->imp_lock);
         } else {
                 /* The transno had better not change over replay. */
@@ -2207,9 +2206,6 @@ static int ptlrpc_replay_interpret(struct ptlrpc_request *req,
         }
 
         spin_lock(&imp->imp_lock);
-        /* if replays by version then gap was occur on server, no trust to locks */
-        if (lustre_msg_get_flags(req->rq_repmsg) & MSG_VERSION_REPLAY)
-                imp->imp_no_lock_replay = 1;
         imp->imp_last_replay_transno = lustre_msg_get_transno(req->rq_reqmsg);
         spin_unlock(&imp->imp_lock);
         LASSERT(imp->imp_last_replay_transno);
index c01310e..9d4d273 100644 (file)
@@ -2,8 +2,8 @@
 
 set -e
 
-# bug number:
-ALWAYS_EXCEPT="3c 4b 4c 10 $REPLAY_VBR_EXCEPT"
+# bug number: 18946
+ALWAYS_EXCEPT="3c 4b 4c 10 $REPLAY_VBR_EXCEPT"
 
 SAVE_PWD=$PWD
 PTLDEBUG=${PTLDEBUG:--1}
@@ -74,7 +74,6 @@ test_2() {
     replay_barrier mds
     do_node $CLIENT2 mcreate $DIR/$tdir/$tfile
     do_node $CLIENT1 createmany -o $DIR/$tfile- 25
-    #do_node $CLIENT2 createmany -o $DIR/$tdir/$tfile-2- 1
     do_node $CLIENT1 $CHECKSTAT $DIR/$tdir/$tfile
     do_node $CLIENT1 createmany -o $DIR/$tfile-3- 25
     zconf_umount $CLIENT2 $DIR