Whamcloud - gitweb
b=19986 cleanup lock to eliminate former test cases effect before replay-single test_53
authorFan Yong <Yong.Fan@Sun.COM>
Mon, 10 May 2010 11:20:57 +0000 (19:20 +0800)
committerjohann <johann@granier.local>
Tue, 11 May 2010 11:00:35 +0000 (13:00 +0200)
cleanup lock to eliminate former test cases effect before replay-single test_53

i=johann
i=robert

lustre/tests/replay-single.sh

index cce3326..612d050 100644 (file)
@@ -1061,6 +1061,7 @@ run_test 52 "time out lock replay (3764)"
 
 # bug 3462 - simultaneous MDC requests
 test_53a() {
+    cancel_lru_locks mdc  # lock cleanup
     mkdir -p $DIR/${tdir}-1
     mkdir -p $DIR/${tdir}-2
     multiop $DIR/${tdir}-1/f O_c &
@@ -1088,6 +1089,7 @@ test_53a() {
 run_test 53a "|X| close request while two MDC requests in flight"
 
 test_53b() {
+    cancel_lru_locks mdc  # lock cleanup
     rm -rf $DIR/${tdir}-1 $DIR/${tdir}-2
 
     mkdir -p $DIR/$tdir-1
@@ -1120,6 +1122,7 @@ test_53b() {
 run_test 53b "|X| open request while two MDC requests in flight"
 
 test_53c() {
+    cancel_lru_locks mdc  # lock cleanup
     rm -rf $DIR/${tdir}-1 $DIR/${tdir}-2
 
     mkdir -p $DIR/${tdir}-1
@@ -1153,6 +1156,7 @@ test_53c() {
 run_test 53c "|X| open request and close request while two MDC requests in flight"
 
 test_53d() {
+    cancel_lru_locks mdc  # lock cleanup
     rm -rf $DIR/${tdir}-1 $DIR/${tdir}-2
 
     mkdir -p $DIR/${tdir}-1
@@ -1182,6 +1186,7 @@ test_53d() {
 run_test 53d "|X| close reply while two MDC requests in flight"
 
 test_53e() {
+    cancel_lru_locks mdc  # lock cleanup
     rm -rf $DIR/${tdir}-1 $DIR/${tdir}-2
 
     mkdir -p $DIR/$tdir-1
@@ -1213,6 +1218,7 @@ test_53e() {
 run_test 53e "|X| open reply while two MDC requests in flight"
 
 test_53f() {
+       cancel_lru_locks mdc  # lock cleanup
         rm -rf $DIR/${tdir}-1 $DIR/${tdir}-2
 
         mkdir -p $DIR/${tdir}-1
@@ -1246,6 +1252,7 @@ test_53f() {
 run_test 53f "|X| open reply and close reply while two MDC requests in flight"
 
 test_53g() {
+       cancel_lru_locks mdc  # lock cleanup
         rm -rf $DIR/${tdir}-1 $DIR/${tdir}-2
 
         mkdir -p $DIR/${tdir}-1
@@ -1279,6 +1286,7 @@ test_53g() {
 run_test 53g "|X| drop open reply and close request while close and open are both in flight"
 
 test_53h() {
+    cancel_lru_locks mdc  # lock cleanup
     rm -rf $DIR/${tdir}-1 $DIR/${tdir}-2
 
     mkdir -p $DIR/${tdir}-1