]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/286: add missing calls to _scratch_dev_pool_put and _spare_dev_put
authorFilipe Manana <fdmanana@suse.com>
Tue, 7 Mar 2023 11:38:49 +0000 (11:38 +0000)
committerZorro Lang <zlang@kernel.org>
Tue, 14 Mar 2023 15:01:19 +0000 (23:01 +0800)
The test is doing a _scratch_dev_pool_get, which shrinks the list of
devices in SCRATCH_DEV_POOL, but it's not calling _scratch_dev_pool_put
before it finishes. This will result in subsequent tests (none at the
moment however) getting a reduced list of devices in SCRATCH_DEV_POOL.

The same goes for the spare device, the test calls _spare_dev_get but
it never calls _spare_dev_put.

So add the missing calls.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/286

index fb805256cd860e49d8ebfeff89a003ed86dffdc1..f1ee129c43dee481b92aab537417796698ae05e3 100755 (executable)
@@ -71,6 +71,9 @@ for t in "${_btrfs_profile_configs[@]}"; do
        workload "$t"
 done
 
+_spare_dev_put
+_scratch_dev_pool_put
+
 echo "Silence is golden"
 
 # success, all done