diff mbox series

fstests: Add missing call to _scratch_dev_pool_put

Message ID 20190325145221.12328-1-nborisov@suse.com (mailing list archive)
State New, archived
Headers show
Series fstests: Add missing call to _scratch_dev_pool_put | expand

Commit Message

Nikolay Borisov March 25, 2019, 2:52 p.m. UTC
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>
---
 tests/btrfs/148 | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/tests/btrfs/148 b/tests/btrfs/148
index 3fd8616f4b4a..55f76bc8af7e 100755
--- a/tests/btrfs/148
+++ b/tests/btrfs/148
@@ -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