All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikolay Borisov <nborisov@suse.com>
To: guaneryu@gmail.com
Cc: linux-btrfs@vger.kernel.org, fdmanana@suse.com,
	Nikolay Borisov <nborisov@suse.com>
Subject: [PATCH] fstests: Add missing call to _scratch_dev_pool_put
Date: Mon, 25 Mar 2019 16:52:21 +0200	[thread overview]
Message-ID: <20190325145221.12328-1-nborisov@suse.com> (raw)

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 --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
-- 
2.7.4


                 reply	other threads:[~2019-03-25 14:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190325145221.12328-1-nborisov@suse.com \
    --to=nborisov@suse.com \
    --cc=fdmanana@suse.com \
    --cc=guaneryu@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.