From: Filipe Manana Date: Tue, 7 Mar 2023 11:38:49 +0000 (+0000) Subject: btrfs/286: add missing calls to _scratch_dev_pool_put and _spare_dev_put X-Git-Tag: v2023.03.19~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=caac10c777865c76a3c4d051a1e5790ce3444bdf;p=xfstests-dev.git btrfs/286: add missing calls to _scratch_dev_pool_put and _spare_dev_put 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 Reviewed-by: Anand Jain Signed-off-by: Zorro Lang --- diff --git a/tests/btrfs/286 b/tests/btrfs/286 index fb805256..f1ee129c 100755 --- a/tests/btrfs/286 +++ b/tests/btrfs/286 @@ -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