From: Johannes Hirte <johannes.hirte@fem.tu-ilmenau.de>
To: Jacek Luczak <difrost.kernel@gmail.com>
Cc: dave@jikos.cz, Liu Bo <liubo2009@cn.fujitsu.com>,
linux-btrfs <linux-btrfs@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
josef@redhat.com, "Rafael J. Wysocki" <rjw@sisk.pl>,
Chris Mason <chris.mason@oracle.com>
Subject: Re: kernel BUG at fs/btrfs/delayed-inode.c:1466!
Date: Mon, 12 Mar 2012 16:11:57 +0100 [thread overview]
Message-ID: <20120312161157.5d76db38@fem.tu-ilmenau.de> (raw)
In-Reply-To: <CADDYkjRkmqbKQnGL+VGgS2hi6F4Z7PbLb6dUB2PYd0M9pVSmPg@mail.gmail.com>
Am Mon, 12 Mar 2012 15:21:49 +0100
schrieb Jacek Luczak <difrost.kernel@gmail.com>:
> > 2) A *regression* in 3.3.0-rc6-00197-g9f8050c
> > - completely unusable as reports ENOSPC
> > - to reproduce, mount volume and issue:
> > # CNT=3D1 ; while [ $CNT -lt 10000 ] ; do =C2=A0rm -f /btrfs/dd ; !=
touch
> > /btrfs/dd && echo "$CNT" && break =C2=A0; CNT=3D$(( $CNT + 1 )) ; d=
one
> > On my host this shows:
> > # CNT=3D1 ; while [ $CNT -lt 10000 ] ; do =C2=A0rm -f /btrfs/dd ; !=
touch
> > /btrfs/dd && echo "$CNT" && break =C2=A0; CNT=3D$(( $CNT + 1 )) ; d=
one
> > touch: cannot touch `/btrfs/dd': No space left on device
> > 423
> > - remount to reset:
> > # CNT=3D1 ; while [ $CNT -lt 10000 ] ; do =C2=A0rm -f /btrfs/dd ; !=
touch
> > /btrfs/dd && echo "$CNT" && break =C2=A0; CNT=3D$(( $CNT + 1 )) ; d=
one
> > touch: cannot touch `/btrfs/dd': No space left on device
> > 1
> > # umount /btrfs/
> > # mount -t btrfs /dev/vg00/btrfs /btrfs/ -o
> > noatime,nodatacow,defaults # CNT=3D1 ; while [ $CNT -lt 10000 ] ; d=
o
> > =C2=A0rm -f /btrfs/dd ; ! touch /vdd && echo "$CNT" && break =C2=A0=
;
> > CNT=3D$(( $CNT + 1 )) ; done touch: cannot touch `/btrfs/dd': No
> > space left on device 423
> > - bisected down to 5500cdb (Btrfs: increase the global block reserv=
e
> > estimates). After reverting this one Linus master works for me
> > again.
>=20
> With above patch reverted after a longer run I've got ENOSPC again:
> 1) # df -hP /btrfs
> Filesystem Size Used Avail Use% Mounted on
> /dev/mapper/vg00-btrfs 195G 179G 11G 95% /btrfs
> 2) # rm -f /btrfs/dd
> rm: cannot remove `/btrfs/dd': No space left on device
> 3) strace
> unlink("/btrfs/dd") =3D -1 ENOSPC (No space left on
> device) 4) last message from kernel (except WARN_ONs):
> btrfs: fail to dirty inode 116882385 =20
>=20
> I've remouted volume and after that I've been able to remove dd file
> from volume. In dmesg there's bunch on new WARN_ONs:
> ------------[ cut here ]------------
> WARNING: at fs/btrfs/extent-tree.c:4185
> btrfs_free_block_groups+0x17d/0x2b8 [btrfs]()
> Hardware name: ProLiant BL460c G6
> Modules linked in: btrfs zlib_deflate lzo_compress ipmi_devintf
> autofs4 be2iscsi iscsi_boot_sysfs ib_iser rdma_cm ib_cm iw_cm ib_sa
> ib_mad ib_addr iscsi_tcp bnx2i cnic uio ipv6 cxgb3i libcxgbi iw_cxgb3
> ib_core cxgb3 libiscsi_tcp libiscsi scsi_transport_iscsi dm_mirror
> dm_region_hash dm_log dm_multipath video battery acpi_pad acpi_ipmi a=
c
> parport usbhid evdev acpi_power_meter radeon ttm drm_kms_helper drm
> hwmon ipmi_si bnx2x backlight i2c_algo_bit ipmi_msghandler i2c_core
> hpilo mdio hpwdt psmouse uhci_hcd ehci_hcd
> Pid: 9518, comm: umount Tainted: G W
> 3.3.0-rc6-00197-g9f8050c-dirty #1 Call Trace:
> [<ffffffff8105caca>] ? print_oops_end_marker+0x9/0x20
> [<ffffffffa031a8a7>] ? btrfs_free_block_groups+0x17d/0x2b8 [btrfs]
> [<ffffffff8105cc92>] ? warn_slowpath_common+0x78/0x8d
> [<ffffffffa031a8a7>] ? btrfs_free_block_groups+0x17d/0x2b8 [btrfs]
> [<ffffffffa0327473>] ? close_ctree+0x1e1/0x380 [btrfs]
> [<ffffffff811320c2>] ? dispose_list+0x27/0x31
> [<ffffffff8113248c>] ? evict_inodes+0xc5/0xcc
> [<ffffffff8112098c>] ? generic_shutdown_super+0x4d/0xc1
> [<ffffffff81120a67>] ? kill_anon_super+0x9/0x11
> [<ffffffffa030a3aa>] ? btrfs_kill_super+0xd/0x73 [btrfs]
> [<ffffffff81120c81>] ? deactivate_locked_super+0x2f/0x5f
> [<ffffffff81135d5f>] ? sys_umount+0x2c1/0x30b
> [<ffffffff813ef0f9>] ? system_call_fastpath+0x16/0x1b
> ---[ end trace fd6da849e53b77dd ]---
> ------------[ cut here ]------------
> WARNING: at fs/btrfs/extent-tree.c:4186
> btrfs_free_block_groups+0x198/0x2b8 [btrfs]()
> Hardware name: ProLiant BL460c G6
> Modules linked in: btrfs zlib_deflate lzo_compress ipmi_devintf
> autofs4 be2iscsi iscsi_boot_sysfs ib_iser rdma_cm ib_cm iw_cm ib_sa
> ib_mad ib_addr iscsi_tcp bnx2i cnic uio ipv6 cxgb3i libcxgbi iw_cxgb3
> ib_core cxgb3 libiscsi_tcp libiscsi scsi_transport_iscsi dm_mirror
> dm_region_hash dm_log dm_multipath video battery acpi_pad acpi_ipmi a=
c
> parport usbhid evdev acpi_power_meter radeon ttm drm_kms_helper drm
> hwmon ipmi_si bnx2x backlight i2c_algo_bit ipmi_msghandler i2c_core
> hpilo mdio hpwdt psmouse uhci_hcd ehci_hcd
> Pid: 9518, comm: umount Tainted: G W
> 3.3.0-rc6-00197-g9f8050c-dirty #1 Call Trace:
> [<ffffffff8105caca>] ? print_oops_end_marker+0x9/0x20
> [<ffffffffa031a8c2>] ? btrfs_free_block_groups+0x198/0x2b8 [btrfs]
> [<ffffffff8105cc92>] ? warn_slowpath_common+0x78/0x8d
> [<ffffffffa031a8c2>] ? btrfs_free_block_groups+0x198/0x2b8 [btrfs]
> [<ffffffffa0327473>] ? close_ctree+0x1e1/0x380 [btrfs]
> [<ffffffff811320c2>] ? dispose_list+0x27/0x31
> [<ffffffff8113248c>] ? evict_inodes+0xc5/0xcc
> [<ffffffff8112098c>] ? generic_shutdown_super+0x4d/0xc1
> [<ffffffff81120a67>] ? kill_anon_super+0x9/0x11
> [<ffffffffa030a3aa>] ? btrfs_kill_super+0xd/0x73 [btrfs]
> [<ffffffff81120c81>] ? deactivate_locked_super+0x2f/0x5f
> [<ffffffff81135d5f>] ? sys_umount+0x2c1/0x30b
> [<ffffffff813ef0f9>] ? system_call_fastpath+0x16/0x1b
> ---[ end trace fd6da849e53b77de ]---
> ------------[ cut here ]------------
> WARNING: at fs/btrfs/extent-tree.c:4187
> btrfs_free_block_groups+0x1b3/0x2b8 [btrfs]()
> Hardware name: ProLiant BL460c G6
> Modules linked in: btrfs zlib_deflate lzo_compress ipmi_devintf
> autofs4 be2iscsi iscsi_boot_sysfs ib_iser rdma_cm ib_cm iw_cm ib_sa
> ib_mad ib_addr iscsi_tcp bnx2i cnic uio ipv6 cxgb3i libcxgbi iw_cxgb3
> ib_core cxgb3 libiscsi_tcp libiscsi scsi_transport_iscsi dm_mirror
> dm_region_hash dm_log dm_multipath video battery acpi_pad acpi_ipmi a=
c
> parport usbhid evdev acpi_power_meter radeon ttm drm_kms_helper drm
> hwmon ipmi_si bnx2x backlight i2c_algo_bit ipmi_msghandler i2c_core
> hpilo mdio hpwdt psmouse uhci_hcd ehci_hcd
> Pid: 9518, comm: umount Tainted: G W
> 3.3.0-rc6-00197-g9f8050c-dirty #1 Call Trace:
> [<ffffffff8105caca>] ? print_oops_end_marker+0x9/0x20
> [<ffffffffa031a8dd>] ? btrfs_free_block_groups+0x1b3/0x2b8 [btrfs]
> [<ffffffff8105cc92>] ? warn_slowpath_common+0x78/0x8d
> [<ffffffffa031a8dd>] ? btrfs_free_block_groups+0x1b3/0x2b8 [btrfs]
> [<ffffffffa0327473>] ? close_ctree+0x1e1/0x380 [btrfs]
> [<ffffffff811320c2>] ? dispose_list+0x27/0x31
> [<ffffffff8113248c>] ? evict_inodes+0xc5/0xcc
> [<ffffffff8112098c>] ? generic_shutdown_super+0x4d/0xc1
> [<ffffffff81120a67>] ? kill_anon_super+0x9/0x11
> [<ffffffffa030a3aa>] ? btrfs_kill_super+0xd/0x73 [btrfs]
> [<ffffffff81120c81>] ? deactivate_locked_super+0x2f/0x5f
> [<ffffffff81135d5f>] ? sys_umount+0x2c1/0x30b
> [<ffffffff813ef0f9>] ? system_call_fastpath+0x16/0x1b
> ---[ end trace fd6da849e53b77df ]---
> ------------[ cut here ]------------
> WARNING: at fs/btrfs/extent-tree.c:7454
> btrfs_free_block_groups+0x256/0x2b8 [btrfs]()
> Hardware name: ProLiant BL460c G6
> Modules linked in: btrfs zlib_deflate lzo_compress ipmi_devintf
> autofs4 be2iscsi iscsi_boot_sysfs ib_iser rdma_cm ib_cm iw_cm ib_sa
> ib_mad ib_addr iscsi_tcp bnx2i cnic uio ipv6 cxgb3i libcxgbi iw_cxgb3
> ib_core cxgb3 libiscsi_tcp libiscsi scsi_transport_iscsi dm_mirror
> dm_region_hash dm_log dm_multipath video battery acpi_pad acpi_ipmi a=
c
> parport usbhid evdev acpi_power_meter radeon ttm drm_kms_helper drm
> hwmon ipmi_si bnx2x backlight i2c_algo_bit ipmi_msghandler i2c_core
> hpilo mdio hpwdt psmouse uhci_hcd ehci_hcd
> Pid: 9518, comm: umount Tainted: G W
> 3.3.0-rc6-00197-g9f8050c-dirty #1 Call Trace:
> [<ffffffff8105caca>] ? print_oops_end_marker+0x9/0x20
> [<ffffffffa031a980>] ? btrfs_free_block_groups+0x256/0x2b8 [btrfs]
> [<ffffffff8105cc92>] ? warn_slowpath_common+0x78/0x8d
> [<ffffffffa031a980>] ? btrfs_free_block_groups+0x256/0x2b8 [btrfs]
> [<ffffffffa0327473>] ? close_ctree+0x1e1/0x380 [btrfs]
> [<ffffffff811320c2>] ? dispose_list+0x27/0x31
> [<ffffffff8113248c>] ? evict_inodes+0xc5/0xcc
> [<ffffffff8112098c>] ? generic_shutdown_super+0x4d/0xc1
> [<ffffffff81120a67>] ? kill_anon_super+0x9/0x11
> [<ffffffffa030a3aa>] ? btrfs_kill_super+0xd/0x73 [btrfs]
> [<ffffffff81120c81>] ? deactivate_locked_super+0x2f/0x5f
> [<ffffffff81135d5f>] ? sys_umount+0x2c1/0x30b
> [<ffffffff813ef0f9>] ? system_call_fastpath+0x16/0x1b
> ---[ end trace fd6da849e53b77e0 ]---
> space_info 4 has 3043549184 free, is not full
> space_info total=3D11953766400, used=3D8901763072, pinned=3D0, reserv=
ed=3D0,
> may_use=3D121643008, readonly=3D8454144
> device fsid b70500f5-3ec6-4a39-9b9a-adad0e8a0346 devid 1 transid 5426=
8
> /dev/vg00/btrfs
> btrfs: setting nodatacow
That's similar to my experiences. Without commit 5500cdb the ENOSPC
errors happens much later but they still happen. And I've seen only a
few times the error -28 and never those backtraces.
regards,
Johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2012-03-12 15:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 12:10 kernel BUG at fs/btrfs/delayed-inode.c:1466! Jacek Luczak
2012-03-08 15:52 ` David Sterba
2012-03-08 19:35 ` Jacek Luczak
2012-03-09 1:31 ` Liu Bo
2012-03-09 6:43 ` Chris Samuel
2012-03-09 9:15 ` Jacek Luczak
2012-03-09 10:55 ` David Sterba
2012-03-09 11:08 ` Jacek Luczak
2012-03-09 11:40 ` David Sterba
2012-03-09 14:13 ` Jacek Luczak
2012-03-09 14:33 ` Jacek Luczak
2012-03-09 14:54 ` David Sterba
2012-03-09 15:32 ` Jacek Luczak
2012-03-09 15:44 ` Jacek Luczak
2012-03-09 23:18 ` Jacek Luczak
2012-03-11 9:41 ` Jacek Luczak
2012-03-12 14:21 ` Jacek Luczak
2012-03-12 15:11 ` Johannes Hirte [this message]
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=20120312161157.5d76db38@fem.tu-ilmenau.de \
--to=johannes.hirte@fem.tu-ilmenau.de \
--cc=chris.mason@oracle.com \
--cc=dave@jikos.cz \
--cc=difrost.kernel@gmail.com \
--cc=josef@redhat.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liubo2009@cn.fujitsu.com \
--cc=rjw@sisk.pl \
/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