From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Hunter Subject: btrfs hang on brd Date: Tue, 31 May 2011 10:03:12 +0300 Message-ID: <4DE492B0.9020302@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linux-btrfs@vger.kernel.org To: chris.mason@oracle.com Return-path: List-ID: Hi I seem to be able to get btrfs reproducibly to produce warnings and finally hang when running a stress test on a ramdisk. Testing was done using the "integration-test" branch of btrfs-unstable. Note that I also tested v2.6.39 and "integration-test" took much longer to hang i.e. it is an improvement The test script and stack dumps are below. Is this a valid test? Is it worth me investigating these? Regards Adrian Test ---- #!/bin/sh sudo modprobe brd rd_size=262144 sudo umount /mnt/test/ 2> /dev/null echo 'mkfs.btrfs /dev/ram0' sudo mkfs.btrfs /dev/ram0 sudo mkdir -p /mnt/test echo 'mount -t btrfs /dev/ram0 /mnt/test' sudo mount -t btrfs /dev/ram0 /mnt/test sudo mkdir -p /mnt/test/test sudo chown $USER /mnt/test/test sudo chgrp $USER /mnt/test/test sudo umount /mnt/test full=0 i=0 while true; do sudo mount -t btrfs /dev/ram0 /mnt/test if df | grep ram0 | grep 100% > /dev/null; then full=`expr $full \+ 1` if test $full -gt 6;then rm -rf /mnt/test/test/* full=0 fi else full=0 fi fsstress -c -r -d /mnt/test/test -p 3 -n 1000 -l 10 sudo umount /mnt/test i=`expr $i \+ 1` echo $i done Stack dumps for warnings ------------------------ [ 7481.520750] WARNING: at fs/btrfs/extent-tree.c:5648 btrfs_alloc_free_block+0x14e/0x357 [btrfs]() [ 7481.520753] Hardware name: XPS 8300 [ 7481.520754] Modules linked in: tcp_lp tun btrfs zlib_deflate libcrc32c brd fuse cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec broadcom tg3 snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr iTCO_wdt iTCO_vendor_support dcdbas serio_raw i2c_i801 snd_timer snd microcode soundcore snd_page_alloc usb_storage i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] [ 7481.520805] Pid: 3980, comm: btrfs-endio-wri Not tainted 2.6.39-integration-test-20110526-01+ #2 [ 7481.520808] Call Trace: [ 7481.520818] [] warn_slowpath_common+0x85/0x9d [ 7481.520824] [] warn_slowpath_null+0x1a/0x1c [ 7481.520838] [] btrfs_alloc_free_block+0x14e/0x357 [btrfs] [ 7481.520865] [] ? map_private_extent_buffer+0xb1/0xd5 [btrfs] [ 7481.520875] [] __btrfs_cow_block+0x102/0x31e [btrfs] [ 7481.520883] [] ? btrfs_set_item_key+0x3/0x20 [btrfs] [ 7481.520892] [] btrfs_cow_block+0x104/0x14d [btrfs] [ 7481.520910] [] btrfs_search_slot+0x162/0x502 [btrfs] [ 7481.520925] [] btrfs_lookup_file_extent+0x3c/0x3e [btrfs] [ 7481.520936] [] ? btrfs_alloc_path+0x1a/0x2b [btrfs] [ 7481.520955] [] btrfs_drop_extents+0x10e/0x731 [btrfs] [ 7481.520960] [] ? need_resched+0x23/0x2d [ 7481.520966] [] ? _cond_resched+0xe/0x22 [ 7481.520972] [] ? slab_pre_alloc_hook.clone.32+0x2d/0x31 [ 7481.520977] [] ? kmem_cache_alloc+0x29/0xf7 [ 7481.521002] [] insert_reserved_file_extent.clone.34+0x70/0x1fc [btrfs] [ 7481.521027] [] ? lock_extent_bits+0x5e/0xa8 [btrfs] [ 7481.521044] [] btrfs_endio_direct_write+0x171/0x29a [btrfs] [ 7481.521060] [] ? end_workqueue_fn+0xf6/0x10e [btrfs] [ 7481.521065] [] bio_endio+0x2d/0x2f [ 7481.521087] [] end_workqueue_fn+0x101/0x10e [btrfs] [ 7481.521101] [] worker_loop+0x193/0x4ca [btrfs] [ 7481.521116] [] ? btrfs_queue_worker+0x214/0x214 [btrfs] [ 7481.521119] [] kthread+0x82/0x8a [ 7481.521124] [] kernel_thread_helper+0x4/0x10 [ 7481.521136] [] ? kthread_worker_fn+0x14b/0x14b [ 7481.521141] [] ? gs_change+0x13/0x13 [ 7481.521144] ---[ end trace abb147a5624a0a24 ]--- [ 7481.521161] ------------[ cut here ]------------ [ 7481.521176] WARNING: at fs/btrfs/extent-tree.c:5648 btrfs_alloc_free_block+0x14e/0x357 [btrfs]() [ 7481.521178] Hardware name: XPS 8300 [ 7481.521180] Modules linked in: tcp_lp tun btrfs zlib_deflate libcrc32c brd fuse cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec broadcom tg3 snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr iTCO_wdt iTCO_vendor_support dcdbas serio_raw i2c_i801 snd_timer snd microcode soundcore snd_page_alloc usb_storage i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] [ 7481.521237] Pid: 3980, comm: btrfs-endio-wri Tainted: G W 2.6.39-integration-test-20110526-01+ #2 [ 7481.521240] Call Trace: [ 7481.521245] [] warn_slowpath_common+0x85/0x9d [ 7481.521250] [] warn_slowpath_null+0x1a/0x1c [ 7481.521288] [] btrfs_alloc_free_block+0x14e/0x357 [btrfs] [ 7481.521303] [] ? map_private_extent_buffer+0xb1/0xd5 [btrfs] [ 7481.521313] [] __btrfs_cow_block+0x102/0x31e [btrfs] [ 7481.521322] [] ? btrfs_set_item_key+0x3/0x20 [btrfs] [ 7481.521341] [] btrfs_cow_block+0x104/0x14d [btrfs] [ 7481.521353] [] btrfs_search_slot+0x162/0x502 [btrfs] [ 7481.521378] [] btrfs_lookup_file_extent+0x3c/0x3e [btrfs] [ 7481.521388] [] ? btrfs_alloc_path+0x1a/0x2b [btrfs] [ 7481.521405] [] btrfs_drop_extents+0x10e/0x731 [btrfs] [ 7481.521410] [] ? need_resched+0x23/0x2d [ 7481.521415] [] ? _cond_resched+0xe/0x22 [ 7481.521420] [] ? slab_pre_alloc_hook.clone.32+0x2d/0x31 [ 7481.521426] [] ? kmem_cache_alloc+0x29/0xf7 [ 7481.521441] [] insert_reserved_file_extent.clone.34+0x70/0x1fc [btrfs] [ 7481.521470] [] ? lock_extent_bits+0x5e/0xa8 [btrfs] [ 7481.521496] [] btrfs_endio_direct_write+0x171/0x29a [btrfs] [ 7481.521511] [] ? end_workqueue_fn+0xf6/0x10e [btrfs] [ 7481.521516] [] bio_endio+0x2d/0x2f [ 7481.521539] [] end_workqueue_fn+0x101/0x10e [btrfs] [ 7481.521565] [] worker_loop+0x193/0x4ca [btrfs] [ 7481.521581] [] ? btrfs_queue_worker+0x214/0x214 [btrfs] [ 7481.521586] [] kthread+0x82/0x8a [ 7481.521591] [] kernel_thread_helper+0x4/0x10 [ 7481.521596] [] ? kthread_worker_fn+0x14b/0x14b [ 7481.521601] [] ? gs_change+0x13/0x13 [ 7481.521604] ---[ end trace abb147a5624a0a25 ]--- [ 7481.521639] ------------[ cut here ]------------ [ 7481.521654] WARNING: at fs/btrfs/extent-tree.c:5648 btrfs_alloc_free_block+0x14e/0x357 [btrfs]() [ 7481.521658] Hardware name: XPS 8300 [ 7481.521669] Modules linked in: tcp_lp tun btrfs zlib_deflate libcrc32c brd fuse cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec broadcom tg3 snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr iTCO_wdt iTCO_vendor_support dcdbas serio_raw i2c_i801 snd_timer snd microcode soundcore snd_page_alloc usb_storage i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] [ 7481.521736] Pid: 3980, comm: btrfs-endio-wri Tainted: G W 2.6.39-integration-test-20110526-01+ #2 [ 7481.521739] Call Trace: [ 7481.521745] [] warn_slowpath_common+0x85/0x9d [ 7481.521750] [] warn_slowpath_null+0x1a/0x1c [ 7481.521763] [] btrfs_alloc_free_block+0x14e/0x357 [btrfs] [ 7481.521773] [] ? btrfs_item_offset_nr+0x19/0x1b [btrfs] [ 7481.521783] [] ? leaf_space_used+0x5e/0x86 [btrfs] [ 7481.521803] [] __btrfs_cow_block+0x102/0x31e [btrfs] [ 7481.521822] [] ? clear_extent_buffer_dirty+0x131/0x142 [btrfs] [ 7481.521834] [] ? leaf_space_used+0xd/0x86 [btrfs] [ 7481.521845] [] btrfs_cow_block+0x104/0x14d [btrfs] [ 7481.521864] [] ? btrfs_spin_on_block+0x55/0x55 [btrfs] [ 7481.521876] [] btrfs_search_slot+0x162/0x502 [btrfs] [ 7481.521889] [] btrfs_insert_empty_items+0x6a/0xba [btrfs] [ 7481.521895] [] ? kmem_cache_alloc+0x29/0xf7 [ 7481.521921] [] insert_reserved_file_extent.clone.34+0xad/0x1fc [btrfs] [ 7481.521947] [] ? lock_extent_bits+0x5e/0xa8 [btrfs] [ 7481.521965] [] btrfs_endio_direct_write+0x171/0x29a [btrfs] [ 7481.521989] [] ? end_workqueue_fn+0xf6/0x10e [btrfs] [ 7481.521994] [] bio_endio+0x2d/0x2f [ 7481.522007] [] end_workqueue_fn+0x101/0x10e [btrfs] [ 7481.522034] [] worker_loop+0x193/0x4ca [btrfs] [ 7481.522052] [] ? btrfs_queue_worker+0x214/0x214 [btrfs] [ 7481.522057] [] kthread+0x82/0x8a [ 7481.522071] [] kernel_thread_helper+0x4/0x10 [ 7481.522076] [] ? kthread_worker_fn+0x14b/0x14b [ 7481.522081] [] ? gs_change+0x13/0x13 [ 7481.522084] ---[ end trace abb147a5624a0a26 ]--- [ 7481.522108] ------------[ cut here ]------------ [ 7481.522123] WARNING: at fs/btrfs/extent-tree.c:5648 btrfs_alloc_free_block+0x14e/0x357 [btrfs]() [ 7481.522126] Hardware name: XPS 8300 [ 7481.522128] Modules linked in: tcp_lp tun btrfs zlib_deflate libcrc32c brd fuse cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec broadcom tg3 snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr iTCO_wdt iTCO_vendor_support dcdbas serio_raw i2c_i801 snd_timer snd microcode soundcore snd_page_alloc usb_storage i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] [ 7481.522203] Pid: 3980, comm: btrfs-endio-wri Tainted: G W 2.6.39-integration-test-20110526-01+ #2 [ 7481.522206] Call Trace: [ 7481.522211] [] warn_slowpath_common+0x85/0x9d [ 7481.522226] [] warn_slowpath_null+0x1a/0x1c [ 7481.522240] [] btrfs_alloc_free_block+0x14e/0x357 [btrfs] [ 7481.522269] [] ? map_private_extent_buffer+0xb1/0xd5 [btrfs] [ 7481.522283] [] __btrfs_cow_block+0x102/0x31e [btrfs] [ 7481.522293] [] ? leaf_space_used+0xd/0x86 [btrfs] [ 7481.522304] [] btrfs_cow_block+0x104/0x14d [btrfs] [ 7481.522315] [] btrfs_search_slot+0x162/0x502 [btrfs] [ 7481.522326] [] btrfs_insert_empty_items+0x6a/0xba [btrfs] [ 7481.522332] [] ? kmem_cache_alloc+0x29/0xf7 [ 7481.522359] [] insert_reserved_file_extent.clone.34+0xad/0x1fc [btrfs] [ 7481.522385] [] ? lock_extent_bits+0x5e/0xa8 [btrfs] [ 7481.522401] [] btrfs_endio_direct_write+0x171/0x29a [btrfs] [ 7481.522415] [] ? end_workqueue_fn+0xf6/0x10e [btrfs] [ 7481.522420] [] bio_endio+0x2d/0x2f [ 7481.522433] [] end_workqueue_fn+0x101/0x10e [btrfs] [ 7481.522459] [] worker_loop+0x193/0x4ca [btrfs] [ 7481.522477] [] ? btrfs_queue_worker+0x214/0x214 [btrfs] [ 7481.522482] [] kthread+0x82/0x8a [ 7481.522488] [] kernel_thread_helper+0x4/0x10 [ 7481.522493] [] ? kthread_worker_fn+0x14b/0x14b [ 7481.522499] [] ? gs_change+0x13/0x13 [ 7481.522502] ---[ end trace abb147a5624a0a27 ]--- [ 7481.522526] ------------[ cut here ]------------ [ 7481.522549] WARNING: at fs/btrfs/extent-tree.c:5648 btrfs_alloc_free_block+0x14e/0x357 [btrfs]() [ 7481.522552] Hardware name: XPS 8300 [ 7481.522555] Modules linked in: tcp_lp tun btrfs zlib_deflate libcrc32c brd fuse cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec broadcom tg3 snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr iTCO_wdt iTCO_vendor_support dcdbas serio_raw i2c_i801 snd_timer snd microcode soundcore snd_page_alloc usb_storage i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] [ 7481.522651] Pid: 3980, comm: btrfs-endio-wri Tainted: G W 2.6.39-integration-test-20110526-01+ #2 [ 7481.522654] Call Trace: [ 7481.522659] [] warn_slowpath_common+0x85/0x9d [ 7481.522665] [] warn_slowpath_null+0x1a/0x1c [ 7481.522686] [] btrfs_alloc_free_block+0x14e/0x357 [btrfs] [ 7481.522705] [] ? map_private_extent_buffer+0xb1/0xd5 [btrfs] [ 7481.522726] [] __btrfs_cow_block+0x102/0x31e [btrfs] [ 7481.522736] [] ? leaf_space_used+0xd/0x86 [btrfs] [ 7481.522746] [] btrfs_cow_block+0x104/0x14d [btrfs] [ 7481.522767] [] btrfs_search_slot+0x162/0x502 [btrfs] [ 7481.522780] [] btrfs_insert_empty_items+0x6a/0xba [btrfs] [ 7481.522786] [] ? kmem_cache_alloc+0x29/0xf7 [ 7481.522812] [] insert_reserved_file_extent.clone.34+0xad/0x1fc [btrfs] [ 7481.522838] [] ? lock_extent_bits+0x5e/0xa8 [btrfs] [ 7481.522856] [] btrfs_endio_direct_write+0x171/0x29a [btrfs] [ 7481.522872] [] ? end_workqueue_fn+0xf6/0x10e [btrfs] [ 7481.522886] [] bio_endio+0x2d/0x2f [ 7481.522899] [] end_workqueue_fn+0x101/0x10e [btrfs] [ 7481.522925] [] worker_loop+0x193/0x4ca [btrfs] [ 7481.522942] [] ? btrfs_queue_worker+0x214/0x214 [btrfs] [ 7481.522948] [] kthread+0x82/0x8a [ 7481.522962] [] kernel_thread_helper+0x4/0x10 [ 7481.522967] [] ? kthread_worker_fn+0x14b/0x14b [ 7481.522972] [] ? gs_change+0x13/0x13 [ 7481.522975] ---[ end trace abb147a5624a0a28 ]--- Stack dumps for more warnings ------------------------------ [21976.930845] WARNING: at fs/btrfs/extent-tree.c:5648 btrfs_alloc_free_block+0x14e/0x357 [btrfs]() [21976.930847] Hardware name: XPS 8300 [21976.930848] Modules linked in: tcp_lp tun btrfs zlib_deflate libcrc32c brd fuse cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec broadcom tg3 snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr iTCO_wdt iTCO_vendor_support dcdbas serio_raw i2c_i801 snd_timer snd microcode soundcore snd_page_alloc usb_storage i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] [21976.930872] Pid: 31794, comm: btrfs-endio-wri Tainted: G W 2.6.39-integration-test-20110526-01+ #2 [21976.930874] Call Trace: [21976.930880] [] warn_slowpath_common+0x85/0x9d [21976.930882] [] warn_slowpath_null+0x1a/0x1c [21976.930889] [] btrfs_alloc_free_block+0x14e/0x357 [btrfs] [21976.930898] [] ? map_private_extent_buffer+0xb1/0xd5 [btrfs] [21976.930904] [] __btrfs_cow_block+0x102/0x31e [btrfs] [21976.930909] [] ? btrfs_set_item_key+0x3/0x20 [btrfs] [21976.930913] [] btrfs_cow_block+0x104/0x14d [btrfs] [21976.930919] [] btrfs_search_slot+0x162/0x502 [btrfs] [21976.930926] [] btrfs_lookup_file_extent+0x3c/0x3e [btrfs] [21976.930931] [] ? btrfs_alloc_path+0x1a/0x2b [btrfs] [21976.930940] [] btrfs_drop_extents+0x10e/0x731 [btrfs] [21976.930943] [] ? need_resched+0x23/0x2d [21976.930946] [] ? _cond_resched+0xe/0x22 [21976.930949] [] ? slab_pre_alloc_hook.clone.32+0x2d/0x31 [21976.930952] [] ? kmem_cache_alloc+0x29/0xf7 [21976.930960] [] insert_reserved_file_extent.clone.34+0x70/0x1fc [btrfs] [21976.930970] [] ? lock_extent_bits+0x5e/0xa8 [btrfs] [21976.930978] [] btrfs_endio_direct_write+0x171/0x29a [btrfs] [21976.930985] [] ? end_workqueue_fn+0xf6/0x10e [btrfs] [21976.930988] [] bio_endio+0x2d/0x2f [21976.930995] [] end_workqueue_fn+0x101/0x10e [btrfs] [21976.931005] [] worker_loop+0x193/0x4ca [btrfs] [21976.931014] [] ? btrfs_queue_worker+0x214/0x214 [btrfs] [21976.931016] [] kthread+0x82/0x8a [21976.931019] [] kernel_thread_helper+0x4/0x10 [21976.931021] [] ? kthread_worker_fn+0x14b/0x14b [21976.931023] [] ? gs_change+0x13/0x13 [21976.931025] ---[ end trace abb147a5624a0a29 ]--- [21983.399883] ------------[ cut here ]------------ [21983.399906] WARNING: at fs/btrfs/extent-tree.c:3832 btrfs_free_block_groups+0x13a/0x228 [btrfs]() [21983.399910] Hardware name: XPS 8300 [21983.399912] Modules linked in: tcp_lp tun btrfs zlib_deflate libcrc32c brd fuse cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec broadcom tg3 snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr iTCO_wdt iTCO_vendor_support dcdbas serio_raw i2c_i801 snd_timer snd microcode soundcore snd_page_alloc usb_storage i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] [21983.399958] Pid: 31847, comm: umount Tainted: G W 2.6.39-integration-test-20110526-01+ #2 [21983.399961] Call Trace: [21983.399969] [] warn_slowpath_common+0x85/0x9d [21983.399975] [] warn_slowpath_null+0x1a/0x1c [21983.399989] [] btrfs_free_block_groups+0x13a/0x228 [btrfs] [21983.400006] [] close_ctree+0x1b2/0x35e [btrfs] [21983.400011] [] ? evict+0x10c/0x115 [21983.400016] [] ? need_resched+0x23/0x2d [21983.400021] [] ? should_resched+0xe/0x2e [21983.400025] [] ? _cond_resched+0xe/0x22 [21983.400029] [] ? down_write+0x29/0x49 [21983.400039] [] btrfs_put_super+0x1d/0x2c [btrfs] [21983.400044] [] generic_shutdown_super+0x74/0xe9 [21983.400048] [] kill_anon_super+0x16/0x50 [21983.400052] [] deactivate_locked_super+0x26/0x4b [21983.400056] [] deactivate_super+0x3a/0x3f [21983.400061] [] mntput_no_expire+0xd0/0xd5 [21983.400065] [] sys_umount+0x2dc/0x30a [21983.400069] [] ? path_put+0x22/0x27 [21983.400074] [] system_call_fastpath+0x16/0x1b [21983.400077] ---[ end trace abb147a5624a0a2a ]--- [21983.400079] ------------[ cut here ]------------ [21983.400092] WARNING: at fs/btrfs/extent-tree.c:3833 btrfs_free_block_groups+0x155/0x228 [btrfs]() [21983.400095] Hardware name: XPS 8300 [21983.400097] Modules linked in: tcp_lp tun btrfs zlib_deflate libcrc32c brd fuse cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec broadcom tg3 snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr iTCO_wdt iTCO_vendor_support dcdbas serio_raw i2c_i801 snd_timer snd microcode soundcore snd_page_alloc usb_storage i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] [21983.400136] Pid: 31847, comm: umount Tainted: G W 2.6.39-integration-test-20110526-01+ #2 [21983.400139] Call Trace: [21983.400143] [] warn_slowpath_common+0x85/0x9d [21983.400148] [] warn_slowpath_null+0x1a/0x1c [21983.400160] [] btrfs_free_block_groups+0x155/0x228 [btrfs] [21983.400176] [] close_ctree+0x1b2/0x35e [btrfs] [21983.400179] [] ? evict+0x10c/0x115 [21983.400184] [] ? need_resched+0x23/0x2d [21983.400188] [] ? should_resched+0xe/0x2e [21983.400191] [] ? _cond_resched+0xe/0x22 [21983.400195] [] ? down_write+0x29/0x49 [21983.400204] [] btrfs_put_super+0x1d/0x2c [btrfs] [21983.400209] [] generic_shutdown_super+0x74/0xe9 [21983.400213] [] kill_anon_super+0x16/0x50 [21983.400216] [] deactivate_locked_super+0x26/0x4b [21983.400220] [] deactivate_super+0x3a/0x3f [21983.400225] [] mntput_no_expire+0xd0/0xd5 [21983.400229] [] sys_umount+0x2dc/0x30a [21983.400232] [] ? path_put+0x22/0x27 [21983.400237] [] system_call_fastpath+0x16/0x1b [21983.400240] ---[ end trace abb147a5624a0a2b ]--- [21983.400242] ------------[ cut here ]------------ [21983.400254] WARNING: at fs/btrfs/extent-tree.c:6846 btrfs_free_block_groups+0x1e6/0x228 [btrfs]() [21983.400257] Hardware name: XPS 8300 [21983.400259] Modules linked in: tcp_lp tun btrfs zlib_deflate libcrc32c brd fuse cpufreq_ondemand acpi_cpufreq freq_table mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 uinput snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec broadcom tg3 snd_hwdep snd_seq snd_seq_device snd_pcm joydev pcspkr iTCO_wdt iTCO_vendor_support dcdbas serio_raw i2c_i801 snd_timer snd microcode soundcore snd_page_alloc usb_storage i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded: scsi_wait_scan] [21983.400298] Pid: 31847, comm: umount Tainted: G W 2.6.39-integration-test-20110526-01+ #2 [21983.400300] Call Trace: [21983.400305] [] warn_slowpath_common+0x85/0x9d [21983.400317] [] ? btrfs_free_block_groups+0x204/0x228 [btrfs] [21983.400322] [] warn_slowpath_null+0x1a/0x1c [21983.400334] [] btrfs_free_block_groups+0x1e6/0x228 [btrfs] [21983.400349] [] close_ctree+0x1b2/0x35e [btrfs] [21983.400352] [] ? evict+0x10c/0x115 [21983.400356] [] ? need_resched+0x23/0x2d [21983.400360] [] ? should_resched+0xe/0x2e [21983.400364] [] ? _cond_resched+0xe/0x22 [21983.400367] [] ? down_write+0x29/0x49 [21983.400377] [] btrfs_put_super+0x1d/0x2c [btrfs] [21983.400381] [] generic_shutdown_super+0x74/0xe9 [21983.400385] [] kill_anon_super+0x16/0x50 [21983.400389] [] deactivate_locked_super+0x26/0x4b [21983.400392] [] deactivate_super+0x3a/0x3f [21983.400397] [] mntput_no_expire+0xd0/0xd5 [21983.400401] [] sys_umount+0x2dc/0x30a [21983.400404] [] ? path_put+0x22/0x27 [21983.400409] [] system_call_fastpath+0x16/0x1b [21983.400412] ---[ end trace abb147a5624a0a2c ]--- Stack dumps for the hang ------------------------ [73934.130640] SysRq : Show Blocked State [73934.130644] task PC stack pid father [73934.130676] btrfs-transacti D ffff8801a4a0b440 0 6769 2 0x00000080 [73934.130679] ffff88011f78bd60 0000000000000046 0000000000000000 ffff880100000001 [73934.130682] 0000000000013a80 0000000000013a80 0000000000013a80 ffff8801a21a0000 [73934.130684] 0000000000013a80 ffff88011f78bfd8 0000000000013a80 0000000000013a80 [73934.130687] Call Trace: [73934.130692] [] ? prepare_to_wait+0x6c/0x79 [73934.130704] [] wait_for_commit.clone.14+0x90/0xd5 [btrfs] [73934.130706] [] ? wake_up_bit+0x2a/0x2a [73934.130714] [] btrfs_commit_transaction+0x102/0x693 [btrfs] [73934.130721] [] ? join_transaction.clone.20+0x17b/0x186 [btrfs] [73934.130723] [] ? wake_up_bit+0x2a/0x2a [73934.130730] [] transaction_kthread+0x17a/0x22f [btrfs] [73934.130736] [] ? btrfs_congested_fn+0x8c/0x8c [btrfs] [73934.130738] [] kthread+0x82/0x8a [73934.130742] [] kernel_thread_helper+0x4/0x10 [73934.130743] [] ? kthread_worker_fn+0x14b/0x14b [73934.130745] [] ? gs_change+0x13/0x13 [73934.130747] flush-btrfs-630 D 00000001046677f8 0 6778 2 0x00000080 [73934.130749] ffff88012031fb10 0000000000000046 ffff88012031fa70 ffff880100000000 [73934.130751] 0000000000013a80 0000000000013a80 0000000000013a80 ffff8801a5c68000 [73934.130754] 0000000000013a80 ffff88012031ffd8 0000000000013a80 0000000000013a80 [73934.130756] Call Trace: [73934.130759] [] schedule_timeout+0x36/0xe3 [73934.130761] [] ? arch_local_irq_save+0x18/0x1e [73934.130763] [] ? _raw_spin_unlock_irqrestore+0x17/0x19 [73934.130765] [] ? prepare_to_wait+0x6c/0x79 [73934.130771] [] btrfs_commit_transaction+0x2c3/0x693 [btrfs] [73934.130773] [] ? wake_up_bit+0x2a/0x2a [73934.130781] [] btrfs_write_inode+0xa0/0xa9 [btrfs] [73934.130784] [] writeback_single_inode+0x125/0x1bf [73934.130786] [] writeback_sb_inodes+0xce/0x160 [73934.130788] [] wb_writeback+0x257/0x3a7 [73934.130790] [] wb_do_writeback+0x88/0x1a0 [73934.130792] [] ? run_timer_softirq+0x298/0x298 [73934.130794] [] bdi_writeback_thread+0x8b/0x20c [73934.130796] [] ? wb_do_writeback+0x1a0/0x1a0 [73934.130798] [] kthread+0x82/0x8a [73934.130800] [] kernel_thread_helper+0x4/0x10 [73934.130802] [] ? kthread_worker_fn+0x14b/0x14b [73934.130804] [] ? gs_change+0x13/0x13 [73934.130805] fsstress D 0000000102eb08dd 0 6808 1 0x00000084 [73934.130807] ffff88011d941d48 0000000000000086 0000000000000000 0000000000000400 [73934.130809] 0000000000013a80 0000000000013a80 0000000000013a80 ffff88018c3f5c40 [73934.130812] 0000000000013a80 ffff88011d941fd8 0000000000013a80 0000000000013a80 [73934.130814] Call Trace: [73934.130816] [] ? resched_task+0x48/0x72 [73934.130818] [] schedule_timeout+0x36/0xe3 [73934.130820] [] ? _raw_spin_unlock_irqrestore+0x17/0x19 [73934.130822] [] ? need_resched+0x23/0x2d [73934.130824] [] wait_for_common+0xad/0x102 [73934.130826] [] ? try_to_wake_up+0x226/0x226 [73934.130828] [] ? local_bh_enable_ip+0xe/0x10 [73934.130830] [] ? __sync_filesystem+0x7a/0x7a [73934.130832] [] wait_for_completion+0x1d/0x1f [73934.130834] [] sync_inodes_sb+0x91/0x187 [73934.130835] [] ? __sync_filesystem+0x7a/0x7a [73934.130837] [] __sync_filesystem+0x47/0x7a [73934.130839] [] sync_one_sb+0x16/0x18 [73934.130841] [] iterate_supers+0x6d/0xc4 [73934.130843] [] sync_filesystems+0x20/0x22 [73934.130845] [] sys_sync+0x21/0x33 [73934.130847] [] system_call_fastpath+0x16/0x1b [73934.130848] fsstress D 0000000102eb08dd 0 6809 1 0x00000084 [73934.130850] ffff88011f07fa58 0000000000000082 ffff88010b9bf058 0000000100000001 [73934.130853] 0000000000013a80 0000000000013a80 0000000000013a80 ffff88018c3f2e20 [73934.130855] 0000000000013a80 ffff88011f07ffd8 0000000000013a80 0000000000013a80 [73934.130857] Call Trace: [73934.130859] [] ? avc_has_perm_flags+0x6c/0x81 [73934.130861] [] schedule_timeout+0x36/0xe3 [73934.130863] [] ? _raw_spin_lock+0xe/0x10 [73934.130865] [] ? task_rq_lock+0x40/0x72 [73934.130867] [] ? _raw_spin_unlock_irqrestore+0x17/0x19 [73934.130869] [] ? need_resched+0x23/0x2d [73934.130870] [] wait_for_common+0xad/0x102 [73934.130872] [] ? try_to_wake_up+0x226/0x226 [73934.130874] [] ? local_bh_enable_ip+0xe/0x10 [73934.130876] [] wait_for_completion+0x1d/0x1f [73934.130877] [] writeback_inodes_sb_nr+0x76/0x7d [73934.130880] [] writeback_inodes_sb_nr_if_idle+0x41/0x57 [73934.130885] [] shrink_delalloc.clone.46+0xb2/0x155 [btrfs] [73934.130888] [] ? sidtab_context_to_sid+0x5a/0x12c [73934.130893] [] reserve_metadata_bytes.clone.47+0xf9/0x1b3 [btrfs] [73934.130899] [] btrfs_block_rsv_add+0x2c/0x4f [btrfs] [73934.130901] [] ? should_resched+0xe/0x2e [73934.130907] [] btrfs_trans_reserve_metadata+0x4f/0x74 [btrfs] [73934.130914] [] start_transaction+0x190/0x24f [btrfs] [73934.130921] [] btrfs_start_transaction+0x13/0x15 [btrfs] [73934.130928] [] btrfs_mkdir+0x46/0x1e5 [btrfs] [73934.130931] [] vfs_mkdir+0x63/0x9f [73934.130933] [] sys_mkdirat+0x96/0xe7 [73934.130934] [] ? path_put+0x22/0x27 [73934.130937] [] ? audit_syscall_entry+0x11c/0x148 [73934.130938] [] sys_mkdir+0x18/0x1a [73934.130940] [] system_call_fastpath+0x16/0x1b [73934.130942] updatedb D 0000000102f9f23b 0 7525 7519 0x00000080 [73934.130944] ffff88011ee61e28 0000000000000086 ffff88011ee61f28 ffff880100000000 [73934.130946] 0000000000013a80 0000000000013a80 0000000000013a80 ffff8801a5ccae20 [73934.130949] 0000000000013a80 ffff88011ee61fd8 0000000000013a80 0000000000013a80 [73934.130951] Call Trace: [73934.130953] [] __mutex_lock_common.clone.5+0x12f/0x196 [73934.130955] [] ? filldir64+0xd5/0xd5 [73934.130957] [] __mutex_lock_killable_slowpath+0x13/0x15 [73934.130960] [] __mutex_fastpath_lock_retval+0x18/0x1a [73934.130961] [] mutex_lock_killable+0x38/0x54 [73934.130963] [] vfs_readdir+0x56/0xac [73934.130965] [] sys_getdents+0x81/0xd1 [73934.130967] [] system_call_fastpath+0x16/0x1b [73934.130970] sync D 0000000104667813 0 8162 1930 0x00000080 [73934.130972] ffff880190491d48 0000000000000082 0000000000000000 0000000000000000 [73934.130974] 0000000000013a80 0000000000013a80 0000000000013a80 ffff88015abe0000 [73934.130976] 0000000000013a80 ffff880190491fd8 0000000000013a80 0000000000013a80 [73934.130978] Call Trace: [73934.130980] [] schedule_timeout+0x36/0xe3 [73934.130982] [] ? _raw_spin_unlock_irqrestore+0x17/0x19 [73934.130984] [] ? need_resched+0x23/0x2d [73934.130985] [] wait_for_common+0xad/0x102 [73934.130987] [] ? try_to_wake_up+0x226/0x226 [73934.130989] [] ? local_bh_enable_ip+0xe/0x10 [73934.130991] [] ? __sync_filesystem+0x7a/0x7a [73934.130993] [] wait_for_completion+0x1d/0x1f [73934.130994] [] writeback_inodes_sb_nr+0x76/0x7d [73934.130996] [] writeback_inodes_sb+0x22/0x24 [73934.130998] [] __sync_filesystem+0x51/0x7a [73934.131000] [] sync_one_sb+0x16/0x18 [73934.131002] [] iterate_supers+0x6d/0xc4 [73934.131004] [] sync_filesystems+0x20/0x22 [73934.131005] [] sys_sync+0x17/0x33 [73934.131007] [] system_call_fastpath+0x16/0x1b