Whamcloud - gitweb
b=23729 cancel_lru_locks not working cause some locks are still in cache from mmap...
authorJohann Lombardi <johann.lombardi@oracle.com>
Mon, 31 Jan 2011 13:32:08 +0000 (14:32 +0100)
committerJohann Lombardi <johann.lombardi@oracle.com>
Mon, 31 Jan 2011 13:32:08 +0000 (14:32 +0100)
Fix sanity-benchmark.sh to remove files after fsx otherwise client keeps locks acquired for mmap files in cache.

lustre/tests/sanity-benchmark.sh

index 7bc3a03..4c19a53 100644 (file)
@@ -194,7 +194,8 @@ test_fsx() {
     $LFS setstripe -c -1 $testfile
     echo Using FSX_SEED=$FSX_SEED FSX_SIZE=$FSX_SIZE FSX_COUNT=$FSX_COUNT
     fsx -c 50 -p 1000 -S $FSX_SEED -P $TMP -l $FSX_SIZE \
-       -N $(($FSX_COUNT * 100)) $DIR/fsxfile
+       -N $(($FSX_COUNT * 100)) $testfile
+    rm -f $testfile
     $DEBUG_ON
 }
 run_test fsx "fsx"