From: johann Date: Wed, 6 May 2009 13:44:10 +0000 (+0000) Subject: Branch b_release_1_8_1 X-Git-Tag: v1_8_0_110~40 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=300c58ab2cb107a6ee76dd8aa9d8728f5911575d;p=fs%2Flustre-release.git Branch b_release_1_8_1 b=18946 i=shadow i=johann (patch from tappro) don't cleanup namespace during lock replay, that may lead to deadlocks. --- diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 9e77607..f110862 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -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); diff --git a/lustre/tests/replay-vbr.sh b/lustre/tests/replay-vbr.sh index c01310e..9d4d273 100644 --- a/lustre/tests/replay-vbr.sh +++ b/lustre/tests/replay-vbr.sh @@ -2,8 +2,8 @@ set -e -# bug number: -ALWAYS_EXCEPT="3c 4b 4c 10 $REPLAY_VBR_EXCEPT" +# bug number: 18946 +ALWAYS_EXCEPT="2 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