Tsutomu Itoh
2013-Apr-03 01:19 UTC
(3.9-rc5) WARNING: at fs/btrfs/super.c:255 __btrfs_abort_transaction
Hi, When inode_cache was specified for the mount option, I encountered the following messages at umount. Step to reproduce: mkfs.btrfs -f /dev/sdc4 mount -o compress=lzo,autodefrag,inode_cache /dev/sdc4 /test1 dd if=/dev/zero of=/test1/file1 bs=1M count=8192 dd if=/test1/file1 of=/dev/null bs=1M rm -f /test1/file1 umount /test1 Thanks, Tsutomu ========================================================================================= Apr 3 09:42:29 luna kernel: [ 511.911342] btrfs: use lzo compression Apr 3 09:42:29 luna kernel: [ 511.911348] btrfs: enabling auto defrag Apr 3 09:42:29 luna kernel: [ 511.911352] btrfs: enabling inode map caching Apr 3 09:42:29 luna kernel: [ 511.911353] btrfs: disk space caching is enabled Apr 3 09:43:12 luna kernel: [ 554.638768] ------------[ cut here ]------------ Apr 3 09:43:12 luna kernel: [ 554.638815] WARNING: at fs/btrfs/super.c:255 __btrfs_abort_transaction+0x55/0xdc [btrfs]() Apr 3 09:43:12 luna kernel: [ 554.638818] Hardware name: PRIMERGY Apr 3 09:43:12 luna kernel: [ 554.638822] Modules linked in: btrfs(O) raid6_pq zlib_deflate xor crc32c libcrc32c ebtable_nat ebtables bnx2i cnic uio xt_CHECKSUM cxgb4i iptable_mangle cxgb4 cxgb3i cxgb3 mdio libcxgbi bridge stp llc iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi nfsd auth_rpcgss acpi_cpufreq mperf vhost_net freq_table coretemp tun nfs_acl lockd kvm dm_mirror dm_region_hash iTCO_wdt dm_log dm_mod iTCO_vendor_support tg3 shpchp sunrpc lpc_ich mfd_core ptp pci_hotplug i3000_edac edac_core pps_core microcode i2c_i801 pcspkr i2c_core uinput ipv6 autofs4 ext4 crc16 jbd2 mbcache sr_mod cdrom sd_mod crc_t10dif ata_piix libata megaraid_sas scsi_mod Apr 3 09:43:12 luna kernel: [ 554.638898] Pid: 1749, comm: btrfs-transacti Tainted: G O 3.9.0-rc5 #1 Apr 3 09:43:12 luna kernel: [ 554.638900] Call Trace: Apr 3 09:43:12 luna kernel: [ 554.638909] [<ffffffff8103e52f>] warn_slowpath_common+0x83/0x9e Apr 3 09:43:12 luna kernel: [ 554.638914] [<ffffffff8103e5ed>] warn_slowpath_fmt+0x46/0x48 Apr 3 09:43:12 luna kernel: [ 554.638931] [<ffffffffa040db62>] __btrfs_abort_transaction+0x55/0xdc [btrfs] Apr 3 09:43:12 luna kernel: [ 554.638960] [<ffffffffa04601e4>] ? btrfs_truncate_free_space_cache+0x6c/0x122 [btrfs] Apr 3 09:43:12 luna kernel: [ 554.638981] [<ffffffffa0426513>] btrfs_save_ino_cache+0x190/0x2f9 [btrfs] Apr 3 09:43:12 luna kernel: [ 554.639003] [<ffffffffa042cc6c>] commit_fs_roots.isra.27+0xa6/0x14e [btrfs] Apr 3 09:43:12 luna kernel: [ 554.639026] [<ffffffff81064690>] ? should_resched+0x9/0x28 Apr 3 09:43:12 luna kernel: [ 554.639045] [<ffffffff813dc287>] ? _cond_resched+0xe/0x22 Apr 3 09:43:12 luna kernel: [ 554.639079] [<ffffffffa042e434>] btrfs_commit_transaction+0x471/0x898 [btrfs] Apr 3 09:43:12 luna kernel: [ 554.639084] [<ffffffff8105a8d2>] ? bit_waitqueue+0x7a/0x7a Apr 3 09:43:12 luna kernel: [ 554.639106] [<ffffffffa0427820>] transaction_kthread+0xef/0x190 [btrfs] Apr 3 09:43:12 luna kernel: [ 554.639127] [<ffffffffa0427731>] ? try_to_freeze+0x32/0x32 [btrfs] Apr 3 09:43:12 luna kernel: [ 554.639130] [<ffffffff8105a2b9>] kthread+0x8d/0x95 Apr 3 09:43:12 luna kernel: [ 554.639134] [<ffffffff8105a22c>] ? __kthread_parkme+0x65/0x65 Apr 3 09:43:12 luna kernel: [ 554.639138] [<ffffffff813e3f2c>] ret_from_fork+0x7c/0xb0 Apr 3 09:43:12 luna kernel: [ 554.639142] [<ffffffff8105a22c>] ? __kthread_parkme+0x65/0x65 Apr 3 09:43:12 luna kernel: [ 554.639145] ---[ end trace ab791b60ae901bf9 ]--- Apr 3 09:43:12 luna kernel: [ 554.639149] BTRFS error (device sdc4) in btrfs_save_ino_cache:471: error 28 Apr 3 09:43:12 luna kernel: [ 554.639153] btrfs is forced readonly Apr 3 09:43:12 luna kernel: [ 554.640329] BTRFS warning (device sdc4): Skipping commit of aborted transaction. Apr 3 09:43:12 luna kernel: [ 554.640335] BTRFS error (device sdc4) in cleanup_transaction:1455: error 28 Apr 3 09:43:12 luna kernel: [ 554.832554] ------------[ cut here ]------------ Apr 3 09:43:12 luna kernel: [ 554.832587] WARNING: at fs/btrfs/extent-tree.c:130 btrfs_put_block_group+0x4e/0x66 [btrfs]() Apr 3 09:43:12 luna kernel: [ 554.832590] Hardware name: PRIMERGY Apr 3 09:43:12 luna kernel: [ 554.832592] Modules linked in: btrfs(O) raid6_pq zlib_deflate xor crc32c libcrc32c ebtable_nat ebtables bnx2i cnic uio xt_CHECKSUM cxgb4i iptable_mangle cxgb4 cxgb3i cxgb3 mdio libcxgbi bridge stp llc iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi nfsd auth_rpcgss acpi_cpufreq mperf vhost_net freq_table coretemp tun nfs_acl lockd kvm dm_mirror dm_region_hash iTCO_wdt dm_log dm_mod iTCO_vendor_support tg3 shpchp sunrpc lpc_ich mfd_core ptp pci_hotplug i3000_edac edac_core pps_core microcode i2c_i801 pcspkr i2c_core uinput ipv6 autofs4 ext4 crc16 jbd2 mbcache sr_mod cdrom sd_mod crc_t10dif ata_piix libata megaraid_sas scsi_mod Apr 3 09:43:12 luna kernel: [ 554.832663] Pid: 1787, comm: umount Tainted: G W O 3.9.0-rc5 #1 Apr 3 09:43:12 luna kernel: [ 554.832665] Call Trace: Apr 3 09:43:12 luna kernel: [ 554.832674] [<ffffffff8103e52f>] warn_slowpath_common+0x83/0x9e Apr 3 09:43:12 luna kernel: [ 554.832679] [<ffffffff8103e564>] warn_slowpath_null+0x1a/0x1c Apr 3 09:43:12 luna kernel: [ 554.832697] [<ffffffffa0419c0f>] btrfs_put_block_group+0x4e/0x66 [btrfs] Apr 3 09:43:12 luna kernel: [ 554.832717] [<ffffffffa0420182>] btrfs_free_block_groups+0xec/0x286 [btrfs] Apr 3 09:43:12 luna kernel: [ 554.832740] [<ffffffffa042ae0d>] close_ctree+0x200/0x32f [btrfs] Apr 3 09:43:12 luna kernel: [ 554.832745] [<ffffffff81133f91>] ? evict_inodes+0xe0/0xef Apr 3 09:43:12 luna kernel: [ 554.832761] [<ffffffffa040abec>] btrfs_put_super+0x19/0x1b [btrfs] Apr 3 09:43:12 luna kernel: [ 554.832766] [<ffffffff81121106>] generic_shutdown_super+0x57/0xd3 Apr 3 09:43:12 luna kernel: [ 554.832770] [<ffffffff8112124c>] kill_anon_super+0x14/0x20 Apr 3 09:43:12 luna kernel: [ 554.832785] [<ffffffffa040aa2b>] btrfs_kill_super+0x17/0x23 [btrfs] Apr 3 09:43:12 luna kernel: [ 554.832789] [<ffffffff81121639>] deactivate_locked_super+0x26/0x52 Apr 3 09:43:12 luna kernel: [ 554.832793] [<ffffffff8112186e>] deactivate_super+0x38/0x3d Apr 3 09:43:12 luna kernel: [ 554.832798] [<ffffffff8113710d>] mntput_no_expire+0x11e/0x126 Apr 3 09:43:12 luna kernel: [ 554.832802] [<ffffffff81137f0d>] sys_umount+0x2fa/0x31b Apr 3 09:43:12 luna kernel: [ 554.832806] [<ffffffff813e3fd9>] system_call_fastpath+0x16/0x1b Apr 3 09:43:12 luna kernel: [ 554.832809] ---[ end trace ab791b60ae901bfa ]--- -- 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
Tsutomu Itoh
2013-Apr-03 08:42 UTC
Re: (3.9-rc5) WARNING: at fs/btrfs/super.c:255 __btrfs_abort_transaction
On 2013/04/03 10:19, Tsutomu Itoh wrote:> Hi, > > When inode_cache was specified for the mount option, I encountered the > following messages at umount. > > Step to reproduce: > > mkfs.btrfs -f /dev/sdc4 > mount -o compress=lzo,autodefrag,inode_cache /dev/sdc4 /test1 > dd if=/dev/zero of=/test1/file1 bs=1M count=8192 > dd if=/test1/file1 of=/dev/null bs=1M > rm -f /test1/file1 > umount /test1The size of my test partition is about 20GB. # df -T /test1 Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sdc4 btrfs 19530752 56 17404928 1% /test1 # btrfs fi sh /dev/sdc4 Label: none uuid: d4937df0-618d-4854-8fac-5b5c9aa3c84f Total devices 1 FS bytes used 28.00KB devid 1 size 18.63GB used 2.04GB path /dev/sdc4 Btrfs v0.20-rc1-253-g7854c8b # btrfs fi df /test1 Data: total=8.00MB, used=0.00 System, DUP: total=8.00MB, used=4.00KB System: total=4.00MB, used=0.00 Metadata, DUP: total=1.00GB, used=24.00KB Metadata: total=8.00MB, used=0.00 - Tsutomu> > Thanks, > Tsutomu > > =========================================================================================> > Apr 3 09:42:29 luna kernel: [ 511.911342] btrfs: use lzo compression > Apr 3 09:42:29 luna kernel: [ 511.911348] btrfs: enabling auto defrag > Apr 3 09:42:29 luna kernel: [ 511.911352] btrfs: enabling inode map caching > Apr 3 09:42:29 luna kernel: [ 511.911353] btrfs: disk space caching is enabled > Apr 3 09:43:12 luna kernel: [ 554.638768] ------------[ cut here ]------------ > Apr 3 09:43:12 luna kernel: [ 554.638815] WARNING: at fs/btrfs/super.c:255 __btrfs_abort_transaction+0x55/0xdc [btrfs]() > Apr 3 09:43:12 luna kernel: [ 554.638818] Hardware name: PRIMERGY > Apr 3 09:43:12 luna kernel: [ 554.638822] Modules linked in: btrfs(O) raid6_pq zlib_deflate xor crc32c libcrc32c ebtable_nat ebtables bnx2i cnic uio xt_CHECKSUM cxgb4i iptable_mangle cxgb4 cxgb3i cxgb3 mdio libcxgbi bridge stp llc iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi nfsd auth_rpcgss acpi_cpufreq mperf vhost_net freq_table coretemp tun nfs_acl lockd kvm dm_mirror dm_region_hash iTCO_wdt dm_log dm_mod iTCO_vendor_support tg3 shpchp sunrpc lpc_ich mfd_core ptp pci_hotplug i3000_edac edac_core pps_core microcode i2c_i801 pcspkr i2c_core uinput ipv6 autofs4 ext4 crc16 jbd2 mbcache sr_mod cdrom sd_mod crc_t10dif ata_piix libata megaraid_sas scsi_mod > Apr 3 09:43:12 luna kernel: [ 554.638898] Pid: 1749, comm: btrfs-transacti Tainted: G O 3.9.0-rc5 #1 > Apr 3 09:43:12 luna kernel: [ 554.638900] Call Trace: > Apr 3 09:43:12 luna kernel: [ 554.638909] [<ffffffff8103e52f>] warn_slowpath_common+0x83/0x9e > Apr 3 09:43:12 luna kernel: [ 554.638914] [<ffffffff8103e5ed>] warn_slowpath_fmt+0x46/0x48 > Apr 3 09:43:12 luna kernel: [ 554.638931] [<ffffffffa040db62>] __btrfs_abort_transaction+0x55/0xdc [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.638960] [<ffffffffa04601e4>] ? btrfs_truncate_free_space_cache+0x6c/0x122 [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.638981] [<ffffffffa0426513>] btrfs_save_ino_cache+0x190/0x2f9 [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.639003] [<ffffffffa042cc6c>] commit_fs_roots.isra.27+0xa6/0x14e [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.639026] [<ffffffff81064690>] ? should_resched+0x9/0x28 > Apr 3 09:43:12 luna kernel: [ 554.639045] [<ffffffff813dc287>] ? _cond_resched+0xe/0x22 > Apr 3 09:43:12 luna kernel: [ 554.639079] [<ffffffffa042e434>] btrfs_commit_transaction+0x471/0x898 [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.639084] [<ffffffff8105a8d2>] ? bit_waitqueue+0x7a/0x7a > Apr 3 09:43:12 luna kernel: [ 554.639106] [<ffffffffa0427820>] transaction_kthread+0xef/0x190 [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.639127] [<ffffffffa0427731>] ? try_to_freeze+0x32/0x32 [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.639130] [<ffffffff8105a2b9>] kthread+0x8d/0x95 > Apr 3 09:43:12 luna kernel: [ 554.639134] [<ffffffff8105a22c>] ? __kthread_parkme+0x65/0x65 > Apr 3 09:43:12 luna kernel: [ 554.639138] [<ffffffff813e3f2c>] ret_from_fork+0x7c/0xb0 > Apr 3 09:43:12 luna kernel: [ 554.639142] [<ffffffff8105a22c>] ? __kthread_parkme+0x65/0x65 > Apr 3 09:43:12 luna kernel: [ 554.639145] ---[ end trace ab791b60ae901bf9 ]--- > Apr 3 09:43:12 luna kernel: [ 554.639149] BTRFS error (device sdc4) in btrfs_save_ino_cache:471: error 28 > Apr 3 09:43:12 luna kernel: [ 554.639153] btrfs is forced readonly > Apr 3 09:43:12 luna kernel: [ 554.640329] BTRFS warning (device sdc4): Skipping commit of aborted transaction. > Apr 3 09:43:12 luna kernel: [ 554.640335] BTRFS error (device sdc4) in cleanup_transaction:1455: error 28 > Apr 3 09:43:12 luna kernel: [ 554.832554] ------------[ cut here ]------------ > Apr 3 09:43:12 luna kernel: [ 554.832587] WARNING: at fs/btrfs/extent-tree.c:130 btrfs_put_block_group+0x4e/0x66 [btrfs]() > Apr 3 09:43:12 luna kernel: [ 554.832590] Hardware name: PRIMERGY > Apr 3 09:43:12 luna kernel: [ 554.832592] Modules linked in: btrfs(O) raid6_pq zlib_deflate xor crc32c libcrc32c ebtable_nat ebtables bnx2i cnic uio xt_CHECKSUM cxgb4i iptable_mangle cxgb4 cxgb3i cxgb3 mdio libcxgbi bridge stp llc iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi nfsd auth_rpcgss acpi_cpufreq mperf vhost_net freq_table coretemp tun nfs_acl lockd kvm dm_mirror dm_region_hash iTCO_wdt dm_log dm_mod iTCO_vendor_support tg3 shpchp sunrpc lpc_ich mfd_core ptp pci_hotplug i3000_edac edac_core pps_core microcode i2c_i801 pcspkr i2c_core uinput ipv6 autofs4 ext4 crc16 jbd2 mbcache sr_mod cdrom sd_mod crc_t10dif ata_piix libata megaraid_sas scsi_mod > Apr 3 09:43:12 luna kernel: [ 554.832663] Pid: 1787, comm: umount Tainted: G W O 3.9.0-rc5 #1 > Apr 3 09:43:12 luna kernel: [ 554.832665] Call Trace: > Apr 3 09:43:12 luna kernel: [ 554.832674] [<ffffffff8103e52f>] warn_slowpath_common+0x83/0x9e > Apr 3 09:43:12 luna kernel: [ 554.832679] [<ffffffff8103e564>] warn_slowpath_null+0x1a/0x1c > Apr 3 09:43:12 luna kernel: [ 554.832697] [<ffffffffa0419c0f>] btrfs_put_block_group+0x4e/0x66 [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.832717] [<ffffffffa0420182>] btrfs_free_block_groups+0xec/0x286 [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.832740] [<ffffffffa042ae0d>] close_ctree+0x200/0x32f [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.832745] [<ffffffff81133f91>] ? evict_inodes+0xe0/0xef > Apr 3 09:43:12 luna kernel: [ 554.832761] [<ffffffffa040abec>] btrfs_put_super+0x19/0x1b [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.832766] [<ffffffff81121106>] generic_shutdown_super+0x57/0xd3 > Apr 3 09:43:12 luna kernel: [ 554.832770] [<ffffffff8112124c>] kill_anon_super+0x14/0x20 > Apr 3 09:43:12 luna kernel: [ 554.832785] [<ffffffffa040aa2b>] btrfs_kill_super+0x17/0x23 [btrfs] > Apr 3 09:43:12 luna kernel: [ 554.832789] [<ffffffff81121639>] deactivate_locked_super+0x26/0x52 > Apr 3 09:43:12 luna kernel: [ 554.832793] [<ffffffff8112186e>] deactivate_super+0x38/0x3d > Apr 3 09:43:12 luna kernel: [ 554.832798] [<ffffffff8113710d>] mntput_no_expire+0x11e/0x126 > Apr 3 09:43:12 luna kernel: [ 554.832802] [<ffffffff81137f0d>] sys_umount+0x2fa/0x31b > Apr 3 09:43:12 luna kernel: [ 554.832806] [<ffffffff813e3fd9>] system_call_fastpath+0x16/0x1b > Apr 3 09:43:12 luna kernel: [ 554.832809] ---[ end trace ab791b60ae901bfa ]--- > > -- > 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 > >-- 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
Chris Mason
2013-Apr-03 13:05 UTC
Re: (3.9-rc5) WARNING: at fs/btrfs/super.c:255 __btrfs_abort_transaction
Quoting Tsutomu Itoh (2013-04-02 21:19:06)> Hi, > > When inode_cache was specified for the mount option, I encountered the > following messages at umount. > > Step to reproduce: > > mkfs.btrfs -f /dev/sdc4 > mount -o compress=lzo,autodefrag,inode_cache /dev/sdc4 /test1 > dd if=/dev/zero of=/test1/file1 bs=1M count=8192 > dd if=/test1/file1 of=/dev/null bs=1M > rm -f /test1/file1 > umount /test1 > Apr 3 09:43:12 luna kernel: [ 554.639149] BTRFS error (device sdc4) in btrfs_save_ino_cache:471: error 28We''re running out of space while saving the inode cache. Strictly speaking this should not abort the FS. I''ll take a look. -chris -- 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
Tsutomu Itoh
2013-Apr-04 00:21 UTC
Re: (3.9-rc5) WARNING: at fs/btrfs/super.c:255 __btrfs_abort_transaction
On 2013/04/03 22:05, Chris Mason wrote:> Quoting Tsutomu Itoh (2013-04-02 21:19:06) >> Hi, >> >> When inode_cache was specified for the mount option, I encountered the >> following messages at umount. >> >> Step to reproduce: >> >> mkfs.btrfs -f /dev/sdc4 >> mount -o compress=lzo,autodefrag,inode_cache /dev/sdc4 /test1 >> dd if=/dev/zero of=/test1/file1 bs=1M count=8192 >> dd if=/test1/file1 of=/dev/null bs=1M >> rm -f /test1/file1 >> umount /test1 >> Apr 3 09:43:12 luna kernel: [ 554.639149] BTRFS error (device sdc4) in btrfs_save_ino_cache:471: error 28 > > We''re running out of space while saving the inode cache. Strictly > speaking this should not abort the FS. I''ll take a look.Umm, 8GB was only written in the filesystem of 20GB... When only inode_cache was specified for the mount option (''mount -o inode_cache /dev/sdc4 /test1''), the error message was not output. Is this information useful for any investigations? Thanks, Tsutomu -- 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
Kurt Huwig
2013-Apr-07 11:55 UTC
Re: (3.9-rc5) WARNING: at fs/btrfs/super.c:255 __btrfs_abort_transaction
I''ve got the same message. I accidentially reduced the size of a LVM volume from 700G to 1G instead of increasing it to 1T. dmesg output can be found here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1164336 I have it reproducible, so I can test any patches. Kurt -- 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
David Sterba
2013-Apr-09 12:01 UTC
Re: (3.9-rc5) WARNING: at fs/btrfs/super.c:255 __btrfs_abort_transaction
On Sun, Apr 07, 2013 at 01:55:33PM +0200, Kurt Huwig wrote:> I''ve got the same message.The message appears to be the same, but is not. It''s a generic transaction abort message that can have various causes, one has to look at the whole message.> I accidentially reduced the size of a LVM > volume from 700G to 1G instead of increasing it to 1T. dmesg output > can be found here: > > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1164336The messsages matche that the device is smaller than the filesystem assumes and an attempt to write a block beyond the end happened. There''s no way how 1G device can hold 700G of data. Try to set the device size back and run scrub. The relevant part (3.9 kernel): [ 65.970915] attempt to access beyond end of device [ 65.970917] dm-2: rw=1041, want=1212490200, limit=2097152 [ 65.971008] BTRFS error (device dm-2) in btrfs_commit_transaction:1811: IO failure (Error while writing out transaction.) [ 65.971664] btrfs is forced readonly [ 65.971668] BTRFS warning (device dm-2): Skipping commit of aborted transaction. [ 65.971670] ------------[ cut here ]------------ [ 65.971690] WARNING: at /home/apw/COD/linux/fs/btrfs/super.c:255 __btrfs_abort_transaction+0xdf/0x100 [btrfs]() [ 65.971692] Hardware name: Bochs [ 65.971694] btrfs: Transaction aborted [ 65.971695] Modules linked in: veth ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables bridge stp llc lp ppdev psmouse serio_raw parport_pc parport microcode ext2 raid10 raid456 async_pq async_xor async_memcpy async_raid6_recov async_tx raid1 raid0 multipath linear btrfs raid6_pq floppy ahci e1000 xor libahci zlib_deflate libcrc32c [ 65.971726] Pid: 1849, comm: btrfsctl Not tainted 3.9.0-030900rc5-generic #201303311835 [ 65.971728] Call Trace: [ 65.971737] [<ffffffff8105a53f>] warn_slowpath_common+0x7f/0xc0 [ 65.971742] [<ffffffff8105a636>] warn_slowpath_fmt+0x46/0x50 [ 65.971754] [<ffffffffa00941af>] __btrfs_abort_transaction+0xdf/0x100 [btrfs] [ 65.971771] [<ffffffffa00bf05e>] cleanup_transaction+0x6e/0x2a0 [btrfs] [ 65.971777] [<ffffffff81080ae0>] ? add_wait_queue+0x60/0x60 [ 65.971792] [<ffffffffa00be8eb>] btrfs_commit_transaction+0x86b/0xba0 [btrfs] [ 65.971796] [<ffffffff81080ae0>] ? add_wait_queue+0x60/0x60 [ 65.971815] [<ffffffffa0105b35>] prepare_to_relocate+0x105/0x1c0 [btrfs] [ 65.971831] [<ffffffffa010b55f>] relocate_block_group+0x4f/0x570 [btrfs] [ 65.971847] [<ffffffffa00d6f74>] ? btrfs_wait_ordered_extents+0x234/0x250 [btrfs] [ 65.971852] [<ffffffff81703b7e>] ? _raw_spin_lock+0xe/0x20 [ 65.971867] [<ffffffffa010bc45>] btrfs_relocate_block_group+0x1c5/0x300 [btrfs] [ 65.971883] [<ffffffffa00e3316>] btrfs_relocate_chunk.isra.59+0x56/0x3e0 [btrfs] [ 65.971899] [<ffffffffa00d8a49>] ? release_extent_buffer.isra.26+0x39/0x60 [btrfs] [ 65.971903] [<ffffffff81703b7e>] ? _raw_spin_lock+0xe/0x20 [ 65.971917] [<ffffffffa00d8aa2>] ? free_extent_buffer.part.41+0x32/0x90 [btrfs] [ 65.971933] [<ffffffffa00e7130>] btrfs_shrink_device+0x200/0x430 [btrfs] [ 65.971949] [<ffffffffa00ec2e1>] btrfs_ioctl_resize+0x341/0x390 [btrfs] [ 65.971964] [<ffffffffa00f29f7>] btrfs_ioctl+0x567/0x920 [btrfs] [ 65.971968] [<ffffffff811affc8>] do_vfs_ioctl+0x88/0x340 [ 65.971972] [<ffffffff811b0311>] sys_ioctl+0x91/0xb0 [ 65.971977] [<ffffffff817077f5>] ? do_async_page_fault+0x35/0x90 [ 65.971981] [<ffffffff8170cb1d>] system_call_fastpath+0x1a/0x1f [ 65.971984] ---[ end trace 49e2f7fb8e15c8ef ]--- [ 65.971986] BTRFS error (device dm-2) in cleanup_transaction:1455: IO failure [ 65.972746] delayed_refs has NO entry david -- 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
Anand Jain
2013-Apr-19 08:52 UTC
Re: (3.9-rc5) WARNING: at fs/btrfs/super.c:255 __btrfs_abort_transaction
Another reproducer is reporting the same effect. as below. ---- mkfs.btrfs /dev/dm-2 /dev/dm-4 -f -m raid1 -d raid1 x="0 0 3 0"; echo "scsi remove-single-device $x" > /proc/scsi/scsi mount -o degraded /dev/dm-2 /btrfs btrfs fi show Label: none uuid: 8ae8e37e-9f04-4a90-9c85-0c75a7622405 Total devices 2 FS bytes used 28.00KB devid 1 size 59.99GB used 2.03GB path /dev/dm-2 *** Some devices missing btrfs fi bal start -mconvert=single -dconvert=single -f /btrfs ERROR: error during balancing ''/btrfs'' - Input/output error There may be more info in syslog - try dmesg | tail ---- ------------------------ [692080.207670] btrfs: open /dev/dm-4 failed [692080.228255] btrfs: allowing degraded mounts [692080.228265] btrfs: disk space caching is enabled [692080.229775] btrfs: mismatching generation and generation_v2 found in root item. This root was probably mounted with an older kernel. Resetting all new fields. [692080.230068] SELinux: initialized (dev dm-2, type btrfs), uses xattr [692129.083932] btrfs: force reducing metadata integrity [692129.088603] BTRFS error (device dm-2) in write_all_supers:3178: IO failure (errors while submitting device barriers.) [692129.088613] btrfs is forced readonly [692129.088618] BTRFS warning (device dm-2): Skipping commit of aborted transaction. [692129.088622] ------------[ cut here ]------------ [692129.088655] WARNING: at fs/btrfs/super.c:255 __btrfs_abort_transaction+0xb9/0xd0 [btrfs]() [692129.088659] Hardware name: SUN BLADE X6240 SERVER MODULE [692129.088661] btrfs: Transaction aborted [692129.088664] Modules linked in: btrfs zlib_deflate libcrc32c [last unloaded: libcrc32c] [692129.088677] Pid: 30620, comm: btrfs Tainted: G W 3.8.0+ #1 [692129.088680] Call Trace: [692129.088695] [<ffffffff8103d39a>] warn_slowpath_common+0x7a/0xb0 [692129.088702] [<ffffffff8103d471>] warn_slowpath_fmt+0x41/0x50 [692129.088733] [<ffffffffa01de819>] __btrfs_abort_transaction+0xb9/0xd0 [btrfs] [692129.088768] [<ffffffffa0209199>] cleanup_transaction+0x69/0x290 [btrfs] [692129.088792] [<ffffffffa01de5b1>] ? btrfs_printk+0x91/0x100 [btrfs] [692129.088802] [<ffffffff810608f0>] ? wake_up_bit+0x40/0x40 [692129.088833] [<ffffffffa0209b41>] btrfs_commit_transaction+0x781/0xa40 [btrfs] [692129.088861] [<ffffffffa0201879>] ? btree_set_page_dirty+0x9/0x10 [btrfs] [692129.088902] [<ffffffff810608f0>] ? wake_up_bit+0x40/0x40 [692129.088956] [<ffffffffa022eda4>] insert_balance_item+0x374/0x390 [btrfs] [692129.088990] [<ffffffffa022f763>] btrfs_balance+0x313/0xe10 [btrfs] [692129.088999] [<ffffffff8127924f>] ? cred_has_capability+0x6f/0xf0 [692129.089005] [<ffffffff8113a101>] ? __sb_start_write+0x71/0x110 [692129.089012] [<ffffffff81131ab3>] ? __kmalloc_track_caller+0x53/0x160 [692129.089034] [<ffffffffa023a4da>] ? btrfs_ioctl_balance+0x14a/0x340 [btrfs] [692129.089039] [<ffffffff81131ca4>] ? __kmalloc+0xe4/0x150 [692129.089061] [<ffffffffa0239c7f>] ? kzalloc+0xf/0x20 [btrfs] [692129.089082] [<ffffffffa023a5aa>] btrfs_ioctl_balance+0x21a/0x340 [btrfs] [692129.089105] [<ffffffffa023d065>] btrfs_ioctl+0x5a5/0x12a0 [btrfs] [692129.089113] [<ffffffff81112d8b>] ? handle_mm_fault+0x12b/0x230 [692129.089121] [<ffffffff818b04bc>] ? __do_page_fault+0x27c/0x470 [692129.089128] [<ffffffff81149478>] do_vfs_ioctl+0x98/0x550 [692129.089133] [<ffffffff8127b67d>] ? file_has_perm+0x8d/0xb0 [692129.089138] [<ffffffff811499c1>] sys_ioctl+0x91/0xa0 [692129.089144] [<ffffffff818b4752>] system_call_fastpath+0x16/0x1b [692129.089148] ---[ end trace da0fcdc03803014b ]--- [692129.089153] BTRFS error (device dm-2) in cleanup_transaction:1457: IO failure [692129.089159] delayed_refs has NO entry --------------------------------------------- -- 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