linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roman Mamedov <rm@romanrm.ru>
To: linux-btrfs@vger.kernel.org
Subject: block rsv returned -28 during balance
Date: Mon, 1 Oct 2012 12:28:32 +0600	[thread overview]
Message-ID: <20121001122832.53c25596@natsu> (raw)

[-- Attachment #1: Type: text/plain, Size: 3571 bytes --]

Hello,

On a 3.6.0-rc7 kernel, I launched:

  # btrfs fi balance start -f -mconvert=single /mnt/tmp/

Current situation:

# df -h /mnt/tmp/
Filesystem             Size  Used Avail Use% Mounted on
/dev/mapper/alpha-lv1  3.6T  2.7T  801G  78% /mnt/tmp

# btrfs fi df /mnt/tmp/
Data: total=3.00TB, used=2.66TB
System: total=4.00MB, used=364.00KB
Metadata, DUP: total=11.00GB, used=5.72GB
Metadata: total=63.00GB, used=0.00

There seems to be plenty of free space, but the balance seems to have stalled
and the dmesg is being filled with messages like this:

[ 2926.465406] btrfs: block rsv returned -28
[ 2926.465411] ------------[ cut here ]------------
[ 2926.465446] WARNING: at /home/apw/COD/linux/fs/btrfs/extent-tree.c:6323 use_block_rsv+0x19f/0x1b0 [btrfs]()
[ 2926.465450] Hardware name: VirtualBox
[ 2926.465452] Modules linked in: joydev microcode parport_pc hid_generic parport psmouse serio_raw pcspkr i2c_piix4 mac_hid xfs btrfs libcrc32c zlib_deflate raid456 async_raid6_recov async_memcpy async_pq async_xor xor async_tx raid6_pq usbhid hid e1000
[ 2926.465517] Pid: 4682, comm: btrfs Tainted: G        W    3.6.0-030600rc7-generic #201209232235
[ 2926.465520] Call Trace:
[ 2926.465532]  [<ffffffff81056fff>] warn_slowpath_common+0x7f/0xc0
[ 2926.465539]  [<ffffffff8105705a>] warn_slowpath_null+0x1a/0x20
[ 2926.465569]  [<ffffffffa00c4edf>] use_block_rsv+0x19f/0x1b0 [btrfs]
[ 2926.465599]  [<ffffffffa00c860d>] btrfs_alloc_free_block+0x3d/0x220 [btrfs]
[ 2926.465625]  [<ffffffffa00b45b4>] ? __btrfs_cow_block+0x324/0x4f0 [btrfs]
[ 2926.465663]  [<ffffffffa00f516c>] ? read_extent_buffer+0xbc/0x120 [btrfs]
[ 2926.465689]  [<ffffffffa00b5dfc>] ? comp_keys+0x2c/0x30 [btrfs]
[ 2926.465715]  [<ffffffffa00b43b2>] __btrfs_cow_block+0x122/0x4f0 [btrfs]
[ 2926.465745]  [<ffffffffa00cfff0>] ? verify_parent_transid+0x170/0x170 [btrfs]
[ 2926.465771]  [<ffffffffa00b487c>] btrfs_cow_block+0xfc/0x220 [btrfs]
[ 2926.465808]  [<ffffffffa0117c6f>] do_relocation+0x46f/0x560 [btrfs]
[ 2926.465815]  [<ffffffff8169e85e>] ? _raw_spin_lock+0xe/0x20
[ 2926.465842]  [<ffffffffa00bc90b>] ? block_rsv_add_bytes+0x5b/0x80 [btrfs]
[ 2926.465878]  [<ffffffffa0117fa4>] relocate_tree_block+0x244/0x280 [btrfs]
[ 2926.465914]  [<ffffffffa011be73>] relocate_tree_blocks+0x123/0x1a0 [btrfs]
[ 2926.465950]  [<ffffffffa011ccba>] relocate_block_group+0x1fa/0x560 [btrfs]
[ 2926.466009]  [<ffffffffa011d1df>] btrfs_relocate_block_group+0x1bf/0x2f0 [btrfs]
[ 2926.466049]  [<ffffffffa00f83a6>] btrfs_relocate_chunk.isra.53+0x56/0x3b0 [btrfs]
[ 2926.466086]  [<ffffffffa00eeda9>] ? release_extent_buffer.isra.37+0x39/0x60 [btrfs]
[ 2926.466092]  [<ffffffff8169e85e>] ? _raw_spin_lock+0xe/0x20
[ 2926.466128]  [<ffffffffa00f43b7>] ? free_extent_buffer+0x37/0x90 [btrfs]
[ 2926.466164]  [<ffffffffa00fc602>] __btrfs_balance+0x302/0x3e0 [btrfs]
[ 2926.466201]  [<ffffffffa00fc9d5>] btrfs_balance+0x2f5/0x4d0 [btrfs]
[ 2926.466238]  [<ffffffffa0104e74>] btrfs_ioctl_balance+0x114/0x440 [btrfs]
[ 2926.466275]  [<ffffffffa0106938>] btrfs_ioctl+0x428/0x950 [btrfs]
[ 2926.466282]  [<ffffffff8115a7b6>] ? do_brk+0x226/0x300
[ 2926.466290]  [<ffffffff8119878a>] do_vfs_ioctl+0x8a/0x340
[ 2926.466297]  [<ffffffff81198ad1>] sys_ioctl+0x91/0xa0
[ 2926.466304]  [<ffffffff816a70ad>] system_call_fastpath+0x1a/0x1f
[ 2926.466308] ---[ end trace 37b1b50f9306e0b3 ]---


-- 
With respect,
Roman

~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Stallman had a printer,
with code he could not see.
So he began to tinker,
and set the software free."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

             reply	other threads:[~2012-10-01  6:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-01  6:28 Roman Mamedov [this message]
2012-10-10 20:21 ` block rsv returned -28 during balance Mitch Harder

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=20121001122832.53c25596@natsu \
    --to=rm@romanrm.ru \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).