]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
fstests: Add missing call to _scratch_dev_pool_put
authorNikolay Borisov <nborisov@suse.com>
Mon, 25 Mar 2019 14:52:21 +0000 (16:52 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sat, 30 Mar 2019 09:24:16 +0000 (17:24 +0800)
Every call to _scratch_dev_pool_get must be paired with call to
_scratch_dev_pool_put otherwise the SCRATCH_POOL variable will have
less devices than it actually must.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/148

index 3fd8616f4b4a0d3f95c748eff7cf142524d8e32b..55f76bc8af7e4e51d08d5836861f256e4586a917 100755 (executable)
@@ -66,5 +66,7 @@ test_direct_io_write "-m raid5 -d raid5"
 echo "Testing RAID6..."
 test_direct_io_write "-m raid6 -d raid6"
 
+_scratch_dev_pool_put
+
 status=0
 exit