]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
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)
commitcaac10c777865c76a3c4d051a1e5790ce3444bdf
treec36307dfbb52d71f990a04bbd6ffb4013bb17d04
parentc7cc038e0a4d41f0389765959f7f5c11137dbec2
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 <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/286