Whamcloud - gitweb
LU-197 Remove files after fsx in sanity-benchmark.sh to drop locks.
authoryangsheng <ys@whamcloud.com>
Thu, 7 Apr 2011 13:41:29 +0000 (21:41 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 6 May 2011 00:53:02 +0000 (17:53 -0700)
commit 9f1f7c4040440b8bab6130d30e9ecd1e8b803657
Date:   Mon Jan 31 14:32:08 2011 +0100

b=23729 cancel_lru_locks not working cause some locks are still in cache from mmap files

Fix sanity-benchmark.sh to remove files after fsx otherwise client keeps locks acquired for mmap files in cache.

a=Johann Lombardi

Signed-off-by: YangSheng <ys@whamcloud.com>
Change-Id: Ib9683b5e8fce550259a1c3bfd617aa04c2f3abdc
Reviewed-on: http://review.whamcloud.com/408
Tested-by: Hudson
Reviewed-by: Yu Jian <yujian@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-benchmark.sh

index d64ec23..e3dd8e6 100644 (file)
@@ -195,7 +195,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"