* WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()
@ 2013-02-25 2:55 Marc MERLIN
2013-02-26 7:02 ` Liu Bo
2013-02-26 14:20 ` Josef Bacik
0 siblings, 2 replies; 5+ messages in thread
From: Marc MERLIN @ 2013-02-25 2:55 UTC (permalink / raw)
To: Linux Btrfs
Is this useful to anyone?
Got this after a crash/reboot:
if (block_rsv) {
WARN_ON(block_rsv->size > 0); <<<<<<<<<<<<<<<<<<<<<<
btrfs_free_block_rsv(root, block_rsv);
}
------------[ cut here ]------------
WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()
Hardware name: 2429A78
Modules linked in: tun ppdev cpufreq_userspace cpufreq_stats cpufreq_conservative cpufreq_powersave rfcomm bnep autofs4 pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) binfmt_misc uinput nfsd auth_rpcgss nfs_acl nfs lockd fscache sunrpc fuse configs parport_pc lp parport input_polldev loop firewire_sbp2 firewire_core crc_itu_t ecryptfs snd_hda_codec_realtek uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media btusb bluetooth hid_generic usbhid hid arc4 coretemp kvm_intel kvm iwldvm ghash_clmulni_intel mac80211 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss iTCO_wdt snd_pcm iTCO_vendor_support snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq battery thinkpad_acpi tpm_tis nvram ac tpm snd_seq_device tpm_bios snd_timer snd evdev iwlwifi wmi cfg80211 sdhci_pci i915 rfkill sdhci microcode mmc_core video pcspkr psmouse lpc_ich e1000e soundcore serio_raw button mei drm_kms_helper drm xhci_hcd ehci_hcd i2c_i801 i2c_algo_bit acpi_cpufreq mperf i2c_core usbcore usb_common processor raid456 multipath dm_snapshot dm_mirror dm_region_hash dm_log dm_crypt dm_mod async_raid6_recov async_pq async_xor raid6_pq async_memcpy async_tx xor blowfish_x86_64 blowfish_common ecb crc32c_intel aesni_intel xts aes_x86_64 lrw gf128mul ablk_helper cryptd thermal thermal_sys
Pid: 500, comm: btrfs-transacti Tainted: G O 3.7.8-amd64-preempt-20130222 #1
Call Trace:
[<ffffffff81040ed4>] warn_slowpath_common+0x7e/0x96
[<ffffffff811f75c5>] ? alloc_extent_state+0x59/0xa4
[<ffffffff81040f01>] warn_slowpath_null+0x15/0x17
[<ffffffff811e972f>] btrfs_orphan_commit_root+0xcb/0xdf
[<ffffffff811e3954>] commit_fs_roots.isra.24+0x99/0x153
[<ffffffff814c1ed6>] ? _raw_spin_lock+0x1b/0x1f
[<ffffffff814c2059>] ? _raw_spin_unlock+0x27/0x32
[<ffffffff811e47e8>] btrfs_commit_transaction+0x45a/0x954
[<ffffffff8105d4be>] ? add_wait_queue+0x44/0x44
[<ffffffff811de8a6>] transaction_kthread+0xe7/0x18a
[<ffffffff811de7bf>] ? try_to_freeze+0x33/0x33
[<ffffffff8105cc31>] kthread+0x88/0x90
[<ffffffff8105cba9>] ? kthread_freezable_should_stop+0x39/0x39
[<ffffffff814c6b3c>] ret_from_fork+0x7c/0xb0
[<ffffffff8105cba9>] ? kthread_freezable_should_stop+0x39/0x39
---[ end trace ee93ff454aca9d81 ]---
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()
2013-02-25 2:55 WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf() Marc MERLIN
@ 2013-02-26 7:02 ` Liu Bo
2013-02-26 15:52 ` Marc MERLIN
2013-02-26 14:20 ` Josef Bacik
1 sibling, 1 reply; 5+ messages in thread
From: Liu Bo @ 2013-02-26 7:02 UTC (permalink / raw)
To: Marc MERLIN; +Cc: Linux Btrfs
On Sun, Feb 24, 2013 at 06:55:46PM -0800, Marc MERLIN wrote:
> Is this useful to anyone?
>
Hi Marc,
Thanks for the report, of course they're useful.
Could you please also show us your workloads and it'd be better to know how to
reproduce this?
thanks,
liubo
> Got this after a crash/reboot:
>
> if (block_rsv) {
> WARN_ON(block_rsv->size > 0); <<<<<<<<<<<<<<<<<<<<<<
> btrfs_free_block_rsv(root, block_rsv);
> }
>
> ------------[ cut here ]------------
> WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()
> Hardware name: 2429A78
> Modules linked in: tun ppdev cpufreq_userspace cpufreq_stats cpufreq_conservative cpufreq_powersave rfcomm bnep autofs4 pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) binfmt_misc uinput nfsd auth_rpcgss nfs_acl nfs lockd fscache sunrpc fuse configs parport_pc lp parport input_polldev loop firewire_sbp2 firewire_core crc_itu_t ecryptfs snd_hda_codec_realtek uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media btusb bluetooth hid_generic usbhid hid arc4 coretemp kvm_intel kvm iwldvm ghash_clmulni_intel mac80211 snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss iTCO_wdt snd_pcm iTCO_vendor_support snd_page_alloc snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq battery thinkpad_acpi tpm_tis nvram ac tpm snd_seq_device tpm_bios snd_timer snd evdev iwlwifi wmi cfg80211 sdhci_pci i915 rfkill sdhci microcode mmc_core video pcspkr psmouse lpc_ich e1000e soundcore serio_raw button mei drm_kms_helper drm xhci_hcd ehci_hcd i2c_i801 i2c_a!
> lgo_bit acpi_cpufreq mperf i2c_core usbcore usb_common processor raid456 multipath dm_snapshot dm_mirror dm_region_hash dm_log dm_crypt dm_mod async_raid6_recov async_pq async_xor raid6_pq async_memcpy async_tx xor blowfish_x86_64 blowfish_common ecb crc32c_intel aesni_intel xts aes_x86_64 lrw gf128mul ablk_helper cryptd thermal thermal_sys
> Pid: 500, comm: btrfs-transacti Tainted: G O 3.7.8-amd64-preempt-20130222 #1
> Call Trace:
> [<ffffffff81040ed4>] warn_slowpath_common+0x7e/0x96
> [<ffffffff811f75c5>] ? alloc_extent_state+0x59/0xa4
> [<ffffffff81040f01>] warn_slowpath_null+0x15/0x17
> [<ffffffff811e972f>] btrfs_orphan_commit_root+0xcb/0xdf
> [<ffffffff811e3954>] commit_fs_roots.isra.24+0x99/0x153
> [<ffffffff814c1ed6>] ? _raw_spin_lock+0x1b/0x1f
> [<ffffffff814c2059>] ? _raw_spin_unlock+0x27/0x32
> [<ffffffff811e47e8>] btrfs_commit_transaction+0x45a/0x954
> [<ffffffff8105d4be>] ? add_wait_queue+0x44/0x44
> [<ffffffff811de8a6>] transaction_kthread+0xe7/0x18a
> [<ffffffff811de7bf>] ? try_to_freeze+0x33/0x33
> [<ffffffff8105cc31>] kthread+0x88/0x90
> [<ffffffff8105cba9>] ? kthread_freezable_should_stop+0x39/0x39
> [<ffffffff814c6b3c>] ret_from_fork+0x7c/0xb0
> [<ffffffff8105cba9>] ? kthread_freezable_should_stop+0x39/0x39
> ---[ end trace ee93ff454aca9d81 ]---
>
> --
> "A mouse is a device used to point at the xterm you want to type in" - A.S.R.
> Microsoft is to operating systems ....
> .... what McDonalds is to gourmet cooking
> Home page: http://marc.merlins.org/
> --
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()
2013-02-25 2:55 WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf() Marc MERLIN
2013-02-26 7:02 ` Liu Bo
@ 2013-02-26 14:20 ` Josef Bacik
2013-02-27 0:37 ` Liu Bo
1 sibling, 1 reply; 5+ messages in thread
From: Josef Bacik @ 2013-02-26 14:20 UTC (permalink / raw)
To: Marc MERLIN; +Cc: Linux Btrfs
On Sun, Feb 24, 2013 at 07:55:46PM -0700, Marc MERLIN wrote:
> Is this useful to anyone?
>
> Got this after a crash/reboot:
>
> if (block_rsv) {
> WARN_ON(block_rsv->size > 0); <<<<<<<<<<<<<<<<<<<<<<
> btrfs_free_block_rsv(root, block_rsv);
> }
>
Fixed in btrfs-next, thanks for reporting!
Josef
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()
2013-02-26 7:02 ` Liu Bo
@ 2013-02-26 15:52 ` Marc MERLIN
0 siblings, 0 replies; 5+ messages in thread
From: Marc MERLIN @ 2013-02-26 15:52 UTC (permalink / raw)
To: Liu Bo; +Cc: Linux Btrfs, jbacik
On Tue, Feb 26, 2013 at 03:02:01PM +0800, Liu Bo wrote:
> On Sun, Feb 24, 2013 at 06:55:46PM -0800, Marc MERLIN wrote:
> > Is this useful to anyone?
> >
>
> Hi Marc,
>
> Thanks for the report, of course they're useful.
Thanks. I wasn't sure since I haven't seen the real problem of crashes
during mount due to unexpected state in replay logs being improved over the
last 4 kernel versions, and I wasn't sure if they are being worked on.
> Could you please also show us your workloads and it'd be better to know how to
> reproduce this?
Sure thing.
Workload is a simple laptop, where something tyipcally dies during writes
and I get a full system hang because linux is unable to flush its disk
queues, so in the end I power cycle.
Details here:
http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg391505.html
As mentioned in my other mail, I do run on top of dmcrypt since I can't have
an unencrypted laptop, and ecryptfs is way too slow while not supporting
encryption of long filenames.
The next question is: are your write requests getting there in the order
they should. My crashes and your BUG() that get triggered indicate that
maybe not.
Currently, I have:
gandalfthegreat:~# cat /sys/block/sda/queue/scheduler
noop [deadline] cfq
That could be a problem I guess, so I'll change it to noop, just in case.
My boot is like this:
/vmlinuz-3.7.8-amd64-preempt-20130222 root=/dev/mapper/cryptroot ro rootflags=subvol=root cryptopts=source=/dev/sda4,keyscript=/sbin/cryptgetpw,discard
btrfs is mounted like so:
LABEL=btrfs_pool1 / btrfs subvol=root,defaults,compress=lzo,discard,nossd,space_cache,noatime
Is there anything else I can give?
(I'll answer on the other thread with the fsimage)
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf()
2013-02-26 14:20 ` Josef Bacik
@ 2013-02-27 0:37 ` Liu Bo
0 siblings, 0 replies; 5+ messages in thread
From: Liu Bo @ 2013-02-27 0:37 UTC (permalink / raw)
To: Marc MERLIN; +Cc: Josef Bacik, Linux Btrfs
On Tue, Feb 26, 2013 at 09:20:43AM -0500, Josef Bacik wrote:
> On Sun, Feb 24, 2013 at 07:55:46PM -0700, Marc MERLIN wrote:
> > Is this useful to anyone?
> >
> > Got this after a crash/reboot:
> >
> > if (block_rsv) {
> > WARN_ON(block_rsv->size > 0); <<<<<<<<<<<<<<<<<<<<<<
> > btrfs_free_block_rsv(root, block_rsv);
> > }
> >
>
> Fixed in btrfs-next, thanks for reporting!
FYI, the commit Josef mentioned is
Btrfs: cleanup orphan reservation if truncate fails
http://git.kernel.org/?p=linux/kernel/git/josef/btrfs-next.git;a=commit;h=4a7d0f6854c4a4ad1dba00a3b128a32d39b9a742
(Correct me if it is wrong.)
thanks,
liubo
>
> Josef
> --
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-02-27 0:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-25 2:55 WARNING: at fs/btrfs/inode.c:2165 btrfs_orphan_commit_root+0xcb/0xdf() Marc MERLIN
2013-02-26 7:02 ` Liu Bo
2013-02-26 15:52 ` Marc MERLIN
2013-02-26 14:20 ` Josef Bacik
2013-02-27 0:37 ` Liu Bo
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.