Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* btrfs dev del hangs on 4.7
@ 2016-08-09 17:27 Hugo Mills
  2016-08-09 18:02 ` Chris Mason
  0 siblings, 1 reply; 9+ messages in thread
From: Hugo Mills @ 2016-08-09 17:27 UTC (permalink / raw)
  To: Btrfs mailing list

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

   Over the weekend, I started doing some maintenance on my server: I
upgraded to 4.7.0, and I started deleting a device from my array,
preparatory to putting in a larger one. About halfway through the
operation, several kernel threads hung up for a while (resulting in
"blocked for 120s" messages), and then the delete process seems to
have stopped entirely, although several kernel threads are at maximum
usage.

   After a few hours, I rebooted the machine, and left it for a day or
so. I tried the delete again this afternoon, and it's done the same
thing again. The full log is included below. I have a kworker and a
btrfs-transaction pegged at close to 100% of a core each, and a
btrfs-cleaner (and the btrfs dev del process) in D state.

   The FS was not under load at the time of the failure, and it passes
scrub. I haven't tried a btrfs check yet.

   Hugo.

Aug  9 15:36:17 s_src@amelia kernel: BTRFS info (device sda2): found 6 extents
Aug  9 15:36:20 s_src@amelia kernel: BTRFS info (device sda2): relocating block group 33406415011840 flags 17
Aug  9 15:36:36 s_src@amelia kernel: BTRFS info (device sda2): found 6 extents
Aug  9 15:36:54 s_src@amelia kernel: BTRFS info (device sda2): found 6 extents
Aug  9 15:36:57 s_src@amelia kernel: BTRFS info (device sda2): relocating block group 31066731577344 flags 17
Aug  9 15:37:18 s_src@amelia kernel: BTRFS info (device sda2): found 1188 extents
Aug  9 15:43:56 s_src@amelia kernel: INFO: task btrfs-cleaner:2102 blocked for more than 120 seconds.
Aug  9 15:43:56 s_src@amelia kernel:       Not tainted 4.7.0-dirty #153
Aug  9 15:43:56 s_src@amelia kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug  9 15:43:56 s_src@amelia kernel: btrfs-cleaner   D ffff88021fc95f40     0  2102      2 0x00000000
Aug  9 15:43:56 s_src@amelia kernel:  ffff8800d9223700 0000000000000005 ffff88021fc0c850 ffff880210954000
Aug  9 15:43:56 s_src@amelia kernel:  ffff880210953e10 ffff8800d9223700 ffff88021691d018 ffff88021691d014
Aug  9 15:43:56 s_src@amelia kernel:  00000000ffffffff ffffffff8141d06a ffff88021691d010 ffffffff8141d209
Aug  9 15:43:56 s_src@amelia kernel: Call Trace:
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141d06a>] ? schedule+0x78/0x85
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141d209>] ? schedule_preempt_disabled+0x5/0x6
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141e041>] ? __mutex_lock_slowpath+0xa9/0x116
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff81178ecf>] ? btrfs_delete_unused_bgs+0xb5/0x346
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8117f6a5>] ? cleaner_kthread+0xf2/0x1a8
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8117f5b3>] ? btree_invalidatepage+0x85/0x85
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff81057ba0>] ? kthread+0x95/0x9d
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141f2ff>] ? ret_from_fork+0x1f/0x40
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff81057b0b>] ? init_completion+0x1d/0x1d
Aug  9 15:43:56 s_src@amelia kernel: INFO: task btrfs:27655 blocked for more than 120 seconds.
Aug  9 15:43:56 s_src@amelia kernel:       Not tainted 4.7.0-dirty #153
Aug  9 15:43:56 s_src@amelia kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug  9 15:43:56 s_src@amelia kernel: btrfs           D ffff88021fc15f40     0 27655  27647 0x00000000
Aug  9 15:43:56 s_src@amelia kernel:  ffff8800d9988b00 ffff88016e7a7ae0 ffff88021fc95fa8 ffff88016e7a8000
Aug  9 15:43:56 s_src@amelia kernel:  ffff88016e7a7b10 ffff8800d9988b00 0000000000000002 ffffffff8141e80a
Aug  9 15:43:56 s_src@amelia kernel:  ffff8800d9988b00 ffffffff8141d06a 7fffffffffffffff ffffffff8141e839
Aug  9 15:43:56 s_src@amelia kernel: Call Trace:
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141e80a>] ? usleep_range+0x35/0x35
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141d06a>] ? schedule+0x78/0x85
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141e839>] ? schedule_timeout+0x2f/0x105
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8102cd97>] ? __default_send_IPI_dest_field+0x34/0x4f
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8105d85d>] ? check_preempt_curr+0x41/0x63
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141d73b>] ? do_wait_for_common+0xea/0x11b
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8105e62c>] ? try_to_wake_up+0x1c6/0x1d7
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141d73b>] ? do_wait_for_common+0xea/0x11b
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8105e684>] ? wake_up_q+0x3b/0x3b
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141d797>] ? wait_for_common+0x2b/0x35
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff811710a8>] ? btrfs_async_run_delayed_refs+0xc6/0xdc
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff811876e1>] ? __btrfs_end_transaction+0x294/0x2d8
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff811c7c79>] ? relocate_block_group+0x46b/0x4ca
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff811c7e0f>] ? btrfs_relocate_block_group+0x137/0x25f
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff811a6cbf>] ? btrfs_relocate_chunk.isra.36+0x3c/0xad
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff811a74dd>] ? btrfs_shrink_device+0x20b/0x497
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff811ad18a>] ? btrfs_rm_device+0x1f2/0x4f9
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff811b3e58>] ? btrfs_ioctl+0x846/0x1e93
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff810a3e46>] ? from_kgid_munged+0x9/0x14
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8110a71a>] ? cp_new_stat+0x139/0x150
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff81113cd5>] ? vfs_ioctl+0x16/0x23
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff81113cd5>] ? vfs_ioctl+0x16/0x23
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff811141ed>] ? do_vfs_ioctl+0x498/0x508
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8110a750>] ? SYSC_newstat+0x1f/0x27
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff81114296>] ? SyS_ioctl+0x39/0x55
Aug  9 15:43:56 s_src@amelia kernel:  [<ffffffff8141f0df>] ? entry_SYSCALL_64_fastpath+0x17/0x93
Aug  9 15:45:56 s_src@amelia kernel: INFO: task btrfs-cleaner:2102 blocked for more than 120 seconds.
Aug  9 15:45:56 s_src@amelia kernel:       Not tainted 4.7.0-dirty #153
Aug  9 15:45:56 s_src@amelia kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug  9 15:45:56 s_src@amelia kernel: btrfs-cleaner   D ffff88021fc95f40     0  2102      2 0x00000000
Aug  9 15:45:56 s_src@amelia kernel:  ffff8800d9223700 0000000000000005 ffff88021fc0c850 ffff880210954000
Aug  9 15:45:56 s_src@amelia kernel:  ffff880210953e10 ffff8800d9223700 ffff88021691d018 ffff88021691d014
Aug  9 15:45:56 s_src@amelia kernel:  00000000ffffffff ffffffff8141d06a ffff88021691d010 ffffffff8141d209
Aug  9 15:45:56 s_src@amelia kernel: Call Trace:
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141d06a>] ? schedule+0x78/0x85
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141d209>] ? schedule_preempt_disabled+0x5/0x6
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141e041>] ? __mutex_lock_slowpath+0xa9/0x116
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff81178ecf>] ? btrfs_delete_unused_bgs+0xb5/0x346
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8117f6a5>] ? cleaner_kthread+0xf2/0x1a8
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8117f5b3>] ? btree_invalidatepage+0x85/0x85
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff81057ba0>] ? kthread+0x95/0x9d
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141f2ff>] ? ret_from_fork+0x1f/0x40
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff81057b0b>] ? init_completion+0x1d/0x1d
Aug  9 15:45:56 s_src@amelia kernel: INFO: task btrfs:27655 blocked for more than 120 seconds.
Aug  9 15:45:56 s_src@amelia kernel:       Not tainted 4.7.0-dirty #153
Aug  9 15:45:56 s_src@amelia kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug  9 15:45:56 s_src@amelia kernel: btrfs           D ffff88021fc15f40     0 27655  27647 0x00000000
Aug  9 15:45:56 s_src@amelia kernel:  ffff8800d9988b00 ffff88016e7a7ae0 ffff88021fc95fa8 ffff88016e7a8000
Aug  9 15:45:56 s_src@amelia kernel:  ffff88016e7a7b10 ffff8800d9988b00 0000000000000002 ffffffff8141e80a
Aug  9 15:45:56 s_src@amelia kernel:  ffff8800d9988b00 ffffffff8141d06a 7fffffffffffffff ffffffff8141e839
Aug  9 15:45:56 s_src@amelia kernel: Call Trace:
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141e80a>] ? usleep_range+0x35/0x35
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141d06a>] ? schedule+0x78/0x85
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141e839>] ? schedule_timeout+0x2f/0x105
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8102cd97>] ? __default_send_IPI_dest_field+0x34/0x4f
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8105d85d>] ? check_preempt_curr+0x41/0x63
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141d73b>] ? do_wait_for_common+0xea/0x11b
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8105e62c>] ? try_to_wake_up+0x1c6/0x1d7
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141d73b>] ? do_wait_for_common+0xea/0x11b
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8105e684>] ? wake_up_q+0x3b/0x3b
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141d797>] ? wait_for_common+0x2b/0x35
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff811710a8>] ? btrfs_async_run_delayed_refs+0xc6/0xdc
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff811876e1>] ? __btrfs_end_transaction+0x294/0x2d8
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff811c7c79>] ? relocate_block_group+0x46b/0x4ca
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff811c7e0f>] ? btrfs_relocate_block_group+0x137/0x25f
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff811a6cbf>] ? btrfs_relocate_chunk.isra.36+0x3c/0xad
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff811a74dd>] ? btrfs_shrink_device+0x20b/0x497
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff811ad18a>] ? btrfs_rm_device+0x1f2/0x4f9
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff811b3e58>] ? btrfs_ioctl+0x846/0x1e93
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff810a3e46>] ? from_kgid_munged+0x9/0x14
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8110a71a>] ? cp_new_stat+0x139/0x150
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff81113cd5>] ? vfs_ioctl+0x16/0x23
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff81113cd5>] ? vfs_ioctl+0x16/0x23
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff811141ed>] ? do_vfs_ioctl+0x498/0x508
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8110a750>] ? SYSC_newstat+0x1f/0x27
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff81114296>] ? SyS_ioctl+0x39/0x55
Aug  9 15:45:56 s_src@amelia kernel:  [<ffffffff8141f0df>] ? entry_SYSCALL_64_fastpath+0x17/0x93
Aug  9 15:47:56 s_src@amelia kernel: INFO: task btrfs-cleaner:2102 blocked for more than 120 seconds.
Aug  9 15:47:56 s_src@amelia kernel:       Not tainted 4.7.0-dirty #153
Aug  9 15:47:56 s_src@amelia kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug  9 15:47:56 s_src@amelia kernel: btrfs-cleaner   D ffff88021fc95f40     0  2102      2 0x00000000
Aug  9 15:47:56 s_src@amelia kernel:  ffff8800d9223700 0000000000000005 ffff88021fc0c850 ffff880210954000
Aug  9 15:47:56 s_src@amelia kernel:  ffff880210953e10 ffff8800d9223700 ffff88021691d018 ffff88021691d014
Aug  9 15:47:56 s_src@amelia kernel:  00000000ffffffff ffffffff8141d06a ffff88021691d010 ffffffff8141d209
Aug  9 15:47:56 s_src@amelia kernel: Call Trace:
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff8141d06a>] ? schedule+0x78/0x85
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff8141d209>] ? schedule_preempt_disabled+0x5/0x6
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff8141e041>] ? __mutex_lock_slowpath+0xa9/0x116
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff81178ecf>] ? btrfs_delete_unused_bgs+0xb5/0x346
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff8117f6a5>] ? cleaner_kthread+0xf2/0x1a8
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff8117f5b3>] ? btree_invalidatepage+0x85/0x85
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff81057ba0>] ? kthread+0x95/0x9d
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff8141f2ff>] ? ret_from_fork+0x1f/0x40
Aug  9 15:47:56 s_src@amelia kernel:  [<ffffffff81057b0b>] ? init_completion+0x1d/0x1d
Aug  9 15:53:56 s_src@amelia kernel: INFO: task btrfs-cleaner:2102 blocked for more than 120 seconds.
Aug  9 15:53:56 s_src@amelia kernel:       Not tainted 4.7.0-dirty #153
Aug  9 15:53:56 s_src@amelia kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug  9 15:53:56 s_src@amelia kernel: btrfs-cleaner   D ffff88021fc15f40     0  2102      2 0x00000000
Aug  9 15:53:56 s_src@amelia kernel:  ffff8800d9223700 0000000000000005 ffff88021fc0c850 ffff880210954000
Aug  9 15:53:56 s_src@amelia kernel:  ffff880210953e10 ffff8800d9223700 ffff88021691d018 ffff88021691d014
Aug  9 15:53:56 s_src@amelia kernel:  00000000ffffffff ffffffff8141d06a ffff88021691d010 ffffffff8141d209
Aug  9 15:53:56 s_src@amelia kernel: Call Trace:
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141d06a>] ? schedule+0x78/0x85
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141d209>] ? schedule_preempt_disabled+0x5/0x6
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141e041>] ? __mutex_lock_slowpath+0xa9/0x116
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff81178ecf>] ? btrfs_delete_unused_bgs+0xb5/0x346
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8117f6a5>] ? cleaner_kthread+0xf2/0x1a8
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8117f5b3>] ? btree_invalidatepage+0x85/0x85
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff81057ba0>] ? kthread+0x95/0x9d
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141f2ff>] ? ret_from_fork+0x1f/0x40
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff81057b0b>] ? init_completion+0x1d/0x1d
Aug  9 15:53:56 s_src@amelia kernel: INFO: task btrfs:27655 blocked for more than 120 seconds.
Aug  9 15:53:56 s_src@amelia kernel:       Not tainted 4.7.0-dirty #153
Aug  9 15:53:56 s_src@amelia kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug  9 15:53:56 s_src@amelia kernel: btrfs           D ffff88021fc95f40     0 27655  27647 0x00000000
Aug  9 15:53:56 s_src@amelia kernel:  ffff8800d9988b00 ffff88016e7a7ae0 ffff88021fc15fa8 ffff88016e7a8000
Aug  9 15:53:56 s_src@amelia kernel:  ffff88016e7a7b10 ffff8800d9988b00 0000000000000002 ffffffff8141e80a
Aug  9 15:53:56 s_src@amelia kernel:  ffff8800d9988b00 ffffffff8141d06a 7fffffffffffffff ffffffff8141e839
Aug  9 15:53:56 s_src@amelia kernel: Call Trace:
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141e80a>] ? usleep_range+0x35/0x35
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141d06a>] ? schedule+0x78/0x85
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141e839>] ? schedule_timeout+0x2f/0x105
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8102cd97>] ? __default_send_IPI_dest_field+0x34/0x4f
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8105d85d>] ? check_preempt_curr+0x41/0x63
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141d73b>] ? do_wait_for_common+0xea/0x11b
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8105e62c>] ? try_to_wake_up+0x1c6/0x1d7
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141d73b>] ? do_wait_for_common+0xea/0x11b
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8105e684>] ? wake_up_q+0x3b/0x3b
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141d797>] ? wait_for_common+0x2b/0x35
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff811710a8>] ? btrfs_async_run_delayed_refs+0xc6/0xdc
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff811876e1>] ? __btrfs_end_transaction+0x294/0x2d8
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff811c7c79>] ? relocate_block_group+0x46b/0x4ca
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff811c7e0f>] ? btrfs_relocate_block_group+0x137/0x25f
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff811a6cbf>] ? btrfs_relocate_chunk.isra.36+0x3c/0xad
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff811a74dd>] ? btrfs_shrink_device+0x20b/0x497
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff811ad18a>] ? btrfs_rm_device+0x1f2/0x4f9
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff811b3e58>] ? btrfs_ioctl+0x846/0x1e93
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff810a3e46>] ? from_kgid_munged+0x9/0x14
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8110a71a>] ? cp_new_stat+0x139/0x150
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff81113cd5>] ? vfs_ioctl+0x16/0x23
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff81113cd5>] ? vfs_ioctl+0x16/0x23
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff811141ed>] ? do_vfs_ioctl+0x498/0x508
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8110a750>] ? SYSC_newstat+0x1f/0x27
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff81114296>] ? SyS_ioctl+0x39/0x55
Aug  9 15:53:56 s_src@amelia kernel:  [<ffffffff8141f0df>] ? entry_SYSCALL_64_fastpath+0x17/0x93
Aug  9 15:55:56 s_src@amelia kernel: INFO: task btrfs-cleaner:2102 blocked for more than 120 seconds.
Aug  9 15:55:56 s_src@amelia kernel:       Not tainted 4.7.0-dirty #153
Aug  9 15:55:56 s_src@amelia kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug  9 15:55:56 s_src@amelia kernel: btrfs-cleaner   D ffff88021fc15f40     0  2102      2 0x00000000
Aug  9 15:55:56 s_src@amelia kernel:  ffff8800d9223700 0000000000000005 ffff88021fc0c850 ffff880210954000
Aug  9 15:55:56 s_src@amelia kernel:  ffff880210953e10 ffff8800d9223700 ffff88021691d018 ffff88021691d014
Aug  9 15:55:56 s_src@amelia kernel:  00000000ffffffff ffffffff8141d06a ffff88021691d010 ffffffff8141d209
Aug  9 15:55:56 s_src@amelia kernel: Call Trace:
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141d06a>] ? schedule+0x78/0x85
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141d209>] ? schedule_preempt_disabled+0x5/0x6
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141e041>] ? __mutex_lock_slowpath+0xa9/0x116
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff81178ecf>] ? btrfs_delete_unused_bgs+0xb5/0x346
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8117f6a5>] ? cleaner_kthread+0xf2/0x1a8
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8117f5b3>] ? btree_invalidatepage+0x85/0x85
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff81057ba0>] ? kthread+0x95/0x9d
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141f2ff>] ? ret_from_fork+0x1f/0x40
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff81057b0b>] ? init_completion+0x1d/0x1d
Aug  9 15:55:56 s_src@amelia kernel: INFO: task btrfs:27655 blocked for more than 120 seconds.
Aug  9 15:55:56 s_src@amelia kernel:       Not tainted 4.7.0-dirty #153
Aug  9 15:55:56 s_src@amelia kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug  9 15:55:56 s_src@amelia kernel: btrfs           D ffff88021fc95f40     0 27655  27647 0x00000000
Aug  9 15:55:56 s_src@amelia kernel:  ffff8800d9988b00 ffff88016e7a7ae0 ffff88021fc15fa8 ffff88016e7a8000
Aug  9 15:55:56 s_src@amelia kernel:  ffff88016e7a7b10 ffff8800d9988b00 0000000000000002 ffffffff8141e80a
Aug  9 15:55:56 s_src@amelia kernel:  ffff8800d9988b00 ffffffff8141d06a 7fffffffffffffff ffffffff8141e839
Aug  9 15:55:56 s_src@amelia kernel: Call Trace:
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141e80a>] ? usleep_range+0x35/0x35
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141d06a>] ? schedule+0x78/0x85
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141e839>] ? schedule_timeout+0x2f/0x105
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8102cd97>] ? __default_send_IPI_dest_field+0x34/0x4f
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8105d85d>] ? check_preempt_curr+0x41/0x63
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141d73b>] ? do_wait_for_common+0xea/0x11b
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8105e62c>] ? try_to_wake_up+0x1c6/0x1d7
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141d73b>] ? do_wait_for_common+0xea/0x11b
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8105e684>] ? wake_up_q+0x3b/0x3b
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141d797>] ? wait_for_common+0x2b/0x35
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff811710a8>] ? btrfs_async_run_delayed_refs+0xc6/0xdc
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff811876e1>] ? __btrfs_end_transaction+0x294/0x2d8
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff811c7c79>] ? relocate_block_group+0x46b/0x4ca
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff811c7e0f>] ? btrfs_relocate_block_group+0x137/0x25f
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff811a6cbf>] ? btrfs_relocate_chunk.isra.36+0x3c/0xad
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff811a74dd>] ? btrfs_shrink_device+0x20b/0x497
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff811ad18a>] ? btrfs_rm_device+0x1f2/0x4f9
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff811b3e58>] ? btrfs_ioctl+0x846/0x1e93
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff810a3e46>] ? from_kgid_munged+0x9/0x14
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8110a71a>] ? cp_new_stat+0x139/0x150
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff81113cd5>] ? vfs_ioctl+0x16/0x23
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff81113cd5>] ? vfs_ioctl+0x16/0x23
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff811141ed>] ? do_vfs_ioctl+0x498/0x508
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8110a750>] ? SYSC_newstat+0x1f/0x27
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff81114296>] ? SyS_ioctl+0x39/0x55
Aug  9 15:55:56 s_src@amelia kernel:  [<ffffffff8141f0df>] ? entry_SYSCALL_64_fastpath+0x17/0x93
Aug  9 15:57:01 nikola -- MARK --
Aug  9 15:58:13 s_src@amelia rpc.mountd[3777]: auth_unix_ip: inbuf 'nfsd 2001:08b0:11fe:8d1d:0000:0000:0000:0011'
Aug  9 15:58:13 s_src@amelia rpc.mountd[3777]: auth_unix_ip: client 0x6c6690 '*,2001:8b0:11fe:8d1d::/64,2001:8b0:11fe:8d1d::11'
Aug  9 15:59:56 s_src@amelia kernel: INFO: task btrfs-cleaner:2102 blocked for more than 120 seconds.
Aug  9 15:59:56 s_src@amelia kernel:       Not tainted 4.7.0-dirty #153
Aug  9 15:59:56 s_src@amelia kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Aug  9 15:59:56 s_src@amelia kernel: btrfs-cleaner   D ffff88021fc95f40     0  2102      2 0x00000000
Aug  9 15:59:56 s_src@amelia kernel:  ffff8800d9223700 0000000000000005 ffff88021fc0c850 ffff880210954000
Aug  9 15:59:56 s_src@amelia kernel:  ffff880210953e10 ffff8800d9223700 ffff88021691d018 ffff88021691d014
Aug  9 15:59:56 s_src@amelia kernel:  00000000ffffffff ffffffff8141d06a ffff88021691d010 ffffffff8141d209
Aug  9 15:59:56 s_src@amelia kernel: Call Trace:
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff8141d06a>] ? schedule+0x78/0x85
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff8141d209>] ? schedule_preempt_disabled+0x5/0x6
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff8141e041>] ? __mutex_lock_slowpath+0xa9/0x116
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff8141e0bc>] ? mutex_lock+0xe/0x1d
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff81178ecf>] ? btrfs_delete_unused_bgs+0xb5/0x346
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff8117f6a5>] ? cleaner_kthread+0xf2/0x1a8
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff8117f5b3>] ? btree_invalidatepage+0x85/0x85
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff81057ba0>] ? kthread+0x95/0x9d
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff8141f2ff>] ? ret_from_fork+0x1f/0x40
Aug  9 15:59:56 s_src@amelia kernel:  [<ffffffff81057b0b>] ? init_completion+0x1d/0x1d


-- 
Hugo Mills             | Great films about cricket: Monster's No-Ball
hugo@... carfax.org.uk |
http://carfax.org.uk/  |
PGP: E2AB1DE4          |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: btrfs dev del hangs on 4.7
  2016-08-09 17:27 btrfs dev del hangs on 4.7 Hugo Mills
@ 2016-08-09 18:02 ` Chris Mason
  2016-08-09 18:23   ` Hugo Mills
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Mason @ 2016-08-09 18:02 UTC (permalink / raw)
  To: Hugo Mills, Btrfs mailing list

On 08/09/2016 01:27 PM, Hugo Mills wrote:
>    Over the weekend, I started doing some maintenance on my server: I
> upgraded to 4.7.0, and I started deleting a device from my array,
> preparatory to putting in a larger one. About halfway through the
> operation, several kernel threads hung up for a while (resulting in
> "blocked for 120s" messages), and then the delete process seems to
> have stopped entirely, although several kernel threads are at maximum
> usage.
>
>    After a few hours, I rebooted the machine, and left it for a day or
> so. I tried the delete again this afternoon, and it's done the same
> thing again. The full log is included below. I have a kworker and a
> btrfs-transaction pegged at close to 100% of a core each, and a
> btrfs-cleaner (and the btrfs dev del process) in D state.
>
>    The FS was not under load at the time of the failure, and it passes
> scrub. I haven't tried a btrfs check yet.

Thanks Hugo, can you nail down which line of code belongs to:

btrfs_async_run_delayed_refs+0xc6

-chris

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: btrfs dev del hangs on 4.7
  2016-08-09 18:02 ` Chris Mason
@ 2016-08-09 18:23   ` Hugo Mills
  2016-08-09 18:26     ` Chris Mason
  0 siblings, 1 reply; 9+ messages in thread
From: Hugo Mills @ 2016-08-09 18:23 UTC (permalink / raw)
  To: Chris Mason; +Cc: Btrfs mailing list

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

   Hi, Chris,

On Tue, Aug 09, 2016 at 02:02:20PM -0400, Chris Mason wrote:
> On 08/09/2016 01:27 PM, Hugo Mills wrote:
> >   Over the weekend, I started doing some maintenance on my server: I
> >upgraded to 4.7.0, and I started deleting a device from my array,
> >preparatory to putting in a larger one. About halfway through the
> >operation, several kernel threads hung up for a while (resulting in
> >"blocked for 120s" messages), and then the delete process seems to
> >have stopped entirely, although several kernel threads are at maximum
> >usage.
> >
> >   After a few hours, I rebooted the machine, and left it for a day or
> >so. I tried the delete again this afternoon, and it's done the same
> >thing again. The full log is included below. I have a kworker and a
> >btrfs-transaction pegged at close to 100% of a core each, and a
> >btrfs-cleaner (and the btrfs dev del process) in D state.
> >
> >   The FS was not under load at the time of the failure, and it passes
> >scrub. I haven't tried a btrfs check yet.
> 
> Thanks Hugo, can you nail down which line of code belongs to:
> 
> btrfs_async_run_delayed_refs+0xc6

   I'm having a spot of trouble with this. The btrfs on this kernel is
built-in, and I've lost the contents of the build directory (it's done
by an overnight build script, and it's already built a 4.8-rc1 for one
of my other machines).

(gdb) file /boot/vmlinuz-4.7.0-dirty
BFD: /boot/vmlinuz-4.7.0-dirty: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
Reading symbols from /boot/vmlinuz-4.7.0-dirty...(no debugging symbols found)...done.
(gdb) list *btrfs_async_run_delayed_refs+0xc6
No symbol table is loaded.  Use the "file" command.

   There must be a way of getting this info from here, but I'm not
sure I know what it is. Build a new kernel from 4.7 with this
machine's config and run gdb on the btrfs.o file? Not a problem to do,
but it might take a little while.

   Hugo.

-- 
Hugo Mills             | Jazz is the sort of music where no-one plays
hugo@... carfax.org.uk | anything the same way once.
http://carfax.org.uk/  |
PGP: E2AB1DE4          |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: btrfs dev del hangs on 4.7
  2016-08-09 18:23   ` Hugo Mills
@ 2016-08-09 18:26     ` Chris Mason
  2016-08-09 18:27       ` Hugo Mills
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Mason @ 2016-08-09 18:26 UTC (permalink / raw)
  To: Hugo Mills, Btrfs mailing list

On 08/09/2016 02:23 PM, Hugo Mills wrote:
>    Hi, Chris,
>
> On Tue, Aug 09, 2016 at 02:02:20PM -0400, Chris Mason wrote:
>> On 08/09/2016 01:27 PM, Hugo Mills wrote:
>>>   Over the weekend, I started doing some maintenance on my server: I
>>> upgraded to 4.7.0, and I started deleting a device from my array,
>>> preparatory to putting in a larger one. About halfway through the
>>> operation, several kernel threads hung up for a while (resulting in
>>> "blocked for 120s" messages), and then the delete process seems to
>>> have stopped entirely, although several kernel threads are at maximum
>>> usage.
>>>
>>>   After a few hours, I rebooted the machine, and left it for a day or
>>> so. I tried the delete again this afternoon, and it's done the same
>>> thing again. The full log is included below. I have a kworker and a
>>> btrfs-transaction pegged at close to 100% of a core each, and a
>>> btrfs-cleaner (and the btrfs dev del process) in D state.
>>>
>>>   The FS was not under load at the time of the failure, and it passes
>>> scrub. I haven't tried a btrfs check yet.
>>
>> Thanks Hugo, can you nail down which line of code belongs to:
>>
>> btrfs_async_run_delayed_refs+0xc6
>
>    I'm having a spot of trouble with this. The btrfs on this kernel is
> built-in, and I've lost the contents of the build directory (it's done
> by an overnight build script, and it's already built a 4.8-rc1 for one
> of my other machines).
>
> (gdb) file /boot/vmlinuz-4.7.0-dirty
> BFD: /boot/vmlinuz-4.7.0-dirty: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
> Reading symbols from /boot/vmlinuz-4.7.0-dirty...(no debugging symbols found)...done.
> (gdb) list *btrfs_async_run_delayed_refs+0xc6
> No symbol table is loaded.  Use the "file" command.
>
>    There must be a way of getting this info from here, but I'm not
> sure I know what it is. Build a new kernel from 4.7 with this
> machine's config and run gdb on the btrfs.o file? Not a problem to do,
> but it might take a little while.

As long as you use the same gcc and config file, it'll almost always 
generate the same offsets/code.  You can recompile with debug symbols on 
and it'll be accurate.

-chris


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: btrfs dev del hangs on 4.7
  2016-08-09 18:26     ` Chris Mason
@ 2016-08-09 18:27       ` Hugo Mills
  2016-08-09 19:11         ` Hugo Mills
  0 siblings, 1 reply; 9+ messages in thread
From: Hugo Mills @ 2016-08-09 18:27 UTC (permalink / raw)
  To: Chris Mason; +Cc: Btrfs mailing list

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

On Tue, Aug 09, 2016 at 02:26:14PM -0400, Chris Mason wrote:
> On 08/09/2016 02:23 PM, Hugo Mills wrote:
> >   Hi, Chris,
> >
> >On Tue, Aug 09, 2016 at 02:02:20PM -0400, Chris Mason wrote:
> >>On 08/09/2016 01:27 PM, Hugo Mills wrote:
> >>>  Over the weekend, I started doing some maintenance on my server: I
> >>>upgraded to 4.7.0, and I started deleting a device from my array,
> >>>preparatory to putting in a larger one. About halfway through the
> >>>operation, several kernel threads hung up for a while (resulting in
> >>>"blocked for 120s" messages), and then the delete process seems to
> >>>have stopped entirely, although several kernel threads are at maximum
> >>>usage.
> >>>
> >>>  After a few hours, I rebooted the machine, and left it for a day or
> >>>so. I tried the delete again this afternoon, and it's done the same
> >>>thing again. The full log is included below. I have a kworker and a
> >>>btrfs-transaction pegged at close to 100% of a core each, and a
> >>>btrfs-cleaner (and the btrfs dev del process) in D state.
> >>>
> >>>  The FS was not under load at the time of the failure, and it passes
> >>>scrub. I haven't tried a btrfs check yet.
> >>
> >>Thanks Hugo, can you nail down which line of code belongs to:
> >>
> >>btrfs_async_run_delayed_refs+0xc6
> >
> >   I'm having a spot of trouble with this. The btrfs on this kernel is
> >built-in, and I've lost the contents of the build directory (it's done
> >by an overnight build script, and it's already built a 4.8-rc1 for one
> >of my other machines).
> >
> >(gdb) file /boot/vmlinuz-4.7.0-dirty
> >BFD: /boot/vmlinuz-4.7.0-dirty: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
> >Reading symbols from /boot/vmlinuz-4.7.0-dirty...(no debugging symbols found)...done.
> >(gdb) list *btrfs_async_run_delayed_refs+0xc6
> >No symbol table is loaded.  Use the "file" command.
> >
> >   There must be a way of getting this info from here, but I'm not
> >sure I know what it is. Build a new kernel from 4.7 with this
> >machine's config and run gdb on the btrfs.o file? Not a problem to do,
> >but it might take a little while.
> 
> As long as you use the same gcc and config file, it'll almost always
> generate the same offsets/code.  You can recompile with debug
> symbols on and it'll be accurate.

   OK. Back later.

   Hugo.

-- 
Hugo Mills             | Jazz is the sort of music where no-one plays
hugo@... carfax.org.uk | anything the same way once.
http://carfax.org.uk/  |
PGP: E2AB1DE4          |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: btrfs dev del hangs on 4.7
  2016-08-09 18:27       ` Hugo Mills
@ 2016-08-09 19:11         ` Hugo Mills
  2016-08-09 19:22           ` Chris Mason
  0 siblings, 1 reply; 9+ messages in thread
From: Hugo Mills @ 2016-08-09 19:11 UTC (permalink / raw)
  To: Chris Mason, Btrfs mailing list

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

On Tue, Aug 09, 2016 at 06:27:33PM +0000, Hugo Mills wrote:
> On Tue, Aug 09, 2016 at 02:26:14PM -0400, Chris Mason wrote:
> > On 08/09/2016 02:23 PM, Hugo Mills wrote:
> > >   Hi, Chris,
> > >
> > >On Tue, Aug 09, 2016 at 02:02:20PM -0400, Chris Mason wrote:
> > >>On 08/09/2016 01:27 PM, Hugo Mills wrote:
> > >>>  Over the weekend, I started doing some maintenance on my server: I
> > >>>upgraded to 4.7.0, and I started deleting a device from my array,
> > >>>preparatory to putting in a larger one. About halfway through the
> > >>>operation, several kernel threads hung up for a while (resulting in
> > >>>"blocked for 120s" messages), and then the delete process seems to
> > >>>have stopped entirely, although several kernel threads are at maximum
> > >>>usage.
> > >>>
> > >>>  After a few hours, I rebooted the machine, and left it for a day or
> > >>>so. I tried the delete again this afternoon, and it's done the same
> > >>>thing again. The full log is included below. I have a kworker and a
> > >>>btrfs-transaction pegged at close to 100% of a core each, and a
> > >>>btrfs-cleaner (and the btrfs dev del process) in D state.
> > >>>
> > >>>  The FS was not under load at the time of the failure, and it passes
> > >>>scrub. I haven't tried a btrfs check yet.
> > >>
> > >>Thanks Hugo, can you nail down which line of code belongs to:
> > >>
> > >>btrfs_async_run_delayed_refs+0xc6
> > >
> > >   I'm having a spot of trouble with this. The btrfs on this kernel is
> > >built-in, and I've lost the contents of the build directory (it's done
> > >by an overnight build script, and it's already built a 4.8-rc1 for one
> > >of my other machines).
> > >
> > >(gdb) file /boot/vmlinuz-4.7.0-dirty
> > >BFD: /boot/vmlinuz-4.7.0-dirty: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
> > >Reading symbols from /boot/vmlinuz-4.7.0-dirty...(no debugging symbols found)...done.
> > >(gdb) list *btrfs_async_run_delayed_refs+0xc6
> > >No symbol table is loaded.  Use the "file" command.
> > >
> > >   There must be a way of getting this info from here, but I'm not
> > >sure I know what it is. Build a new kernel from 4.7 with this
> > >machine's config and run gdb on the btrfs.o file? Not a problem to do,
> > >but it might take a little while.
> > 
> > As long as you use the same gcc and config file, it'll almost always
> > generate the same offsets/code.  You can recompile with debug
> > symbols on and it'll be accurate.
> 
>    OK. Back later.

(gdb) file fs/btrfs/btrfs.o
Reading symbols from fs/btrfs/btrfs.o...done.
(gdb) list *btrfs_async_run_delayed_refs+0xc6
0x13dae is in btrfs_async_run_delayed_refs (fs/btrfs/extent-tree.c:2915).
2910	
2911		btrfs_queue_work(root->fs_info->extent_workers, &async->work);
2912		
2913			if (wait) {
2914			   	  wait_for_completion(&async->wait);
2915						ret = async->error;
2916						      kfree(async);
2917								return ret;
2918								       }
2919									return 0;

   Hugo.

-- 
Hugo Mills             | You shouldn't anthropomorphise computers. They
hugo@... carfax.org.uk | really don't like that.
http://carfax.org.uk/  |
PGP: E2AB1DE4          |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: btrfs dev del hangs on 4.7
  2016-08-09 19:11         ` Hugo Mills
@ 2016-08-09 19:22           ` Chris Mason
  2016-08-09 19:41             ` Hugo Mills
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Mason @ 2016-08-09 19:22 UTC (permalink / raw)
  To: Hugo Mills, Btrfs mailing list



On 08/09/2016 03:11 PM, Hugo Mills wrote:
> On Tue, Aug 09, 2016 at 06:27:33PM +0000, Hugo Mills wrote:
>> On Tue, Aug 09, 2016 at 02:26:14PM -0400, Chris Mason wrote:
>>> On 08/09/2016 02:23 PM, Hugo Mills wrote:
>>>>   Hi, Chris,
>>>>
>>>> On Tue, Aug 09, 2016 at 02:02:20PM -0400, Chris Mason wrote:
>>>>> On 08/09/2016 01:27 PM, Hugo Mills wrote:
>>>>>>  Over the weekend, I started doing some maintenance on my server: I
>>>>>> upgraded to 4.7.0, and I started deleting a device from my array,
>>>>>> preparatory to putting in a larger one. About halfway through the
>>>>>> operation, several kernel threads hung up for a while (resulting in
>>>>>> "blocked for 120s" messages), and then the delete process seems to
>>>>>> have stopped entirely, although several kernel threads are at maximum
>>>>>> usage.
>>>>>>
>>>>>>  After a few hours, I rebooted the machine, and left it for a day or
>>>>>> so. I tried the delete again this afternoon, and it's done the same
>>>>>> thing again. The full log is included below. I have a kworker and a
>>>>>> btrfs-transaction pegged at close to 100% of a core each, and a
>>>>>> btrfs-cleaner (and the btrfs dev del process) in D state.
>>>>>>
>>>>>>  The FS was not under load at the time of the failure, and it passes
>>>>>> scrub. I haven't tried a btrfs check yet.
>>>>>
>>>>> Thanks Hugo, can you nail down which line of code belongs to:
>>>>>
>>>>> btrfs_async_run_delayed_refs+0xc6
>>>>
>>>>   I'm having a spot of trouble with this. The btrfs on this kernel is
>>>> built-in, and I've lost the contents of the build directory (it's done
>>>> by an overnight build script, and it's already built a 4.8-rc1 for one
>>>> of my other machines).
>>>>
>>>> (gdb) file /boot/vmlinuz-4.7.0-dirty
>>>> BFD: /boot/vmlinuz-4.7.0-dirty: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
>>>> Reading symbols from /boot/vmlinuz-4.7.0-dirty...(no debugging symbols found)...done.
>>>> (gdb) list *btrfs_async_run_delayed_refs+0xc6
>>>> No symbol table is loaded.  Use the "file" command.
>>>>
>>>>   There must be a way of getting this info from here, but I'm not
>>>> sure I know what it is. Build a new kernel from 4.7 with this
>>>> machine's config and run gdb on the btrfs.o file? Not a problem to do,
>>>> but it might take a little while.
>>>
>>> As long as you use the same gcc and config file, it'll almost always
>>> generate the same offsets/code.  You can recompile with debug
>>> symbols on and it'll be accurate.
>>
>>    OK. Back later.
>
> (gdb) file fs/btrfs/btrfs.o
> Reading symbols from fs/btrfs/btrfs.o...done.
> (gdb) list *btrfs_async_run_delayed_refs+0xc6
> 0x13dae is in btrfs_async_run_delayed_refs (fs/btrfs/extent-tree.c:2915).
> 2910	
> 2911		btrfs_queue_work(root->fs_info->extent_workers, &async->work);
> 2912		
> 2913			if (wait) {
> 2914			   	  wait_for_completion(&async->wait);
> 2915						ret = async->error;
> 2916						      kfree(async);
> 2917								return ret;
> 2918								       }
> 2919									return 0;

So its waiting on the actual delayed ref work but we don't see them in 
the stack trace.

Can you please sysrq-w and sysrq-t?

-chris


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: btrfs dev del hangs on 4.7
  2016-08-09 19:22           ` Chris Mason
@ 2016-08-09 19:41             ` Hugo Mills
  2016-08-10 22:25               ` Hugo Mills
  0 siblings, 1 reply; 9+ messages in thread
From: Hugo Mills @ 2016-08-09 19:41 UTC (permalink / raw)
  To: Chris Mason; +Cc: Btrfs mailing list

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

On Tue, Aug 09, 2016 at 03:22:03PM -0400, Chris Mason wrote:
> 
> 
> On 08/09/2016 03:11 PM, Hugo Mills wrote:
> >On Tue, Aug 09, 2016 at 06:27:33PM +0000, Hugo Mills wrote:
> >>On Tue, Aug 09, 2016 at 02:26:14PM -0400, Chris Mason wrote:
> >>>On 08/09/2016 02:23 PM, Hugo Mills wrote:
> >>>>  Hi, Chris,
> >>>>
> >>>>On Tue, Aug 09, 2016 at 02:02:20PM -0400, Chris Mason wrote:
> >>>>>On 08/09/2016 01:27 PM, Hugo Mills wrote:
> >>>>>> Over the weekend, I started doing some maintenance on my server: I
> >>>>>>upgraded to 4.7.0, and I started deleting a device from my array,
> >>>>>>preparatory to putting in a larger one. About halfway through the
> >>>>>>operation, several kernel threads hung up for a while (resulting in
> >>>>>>"blocked for 120s" messages), and then the delete process seems to
> >>>>>>have stopped entirely, although several kernel threads are at maximum
> >>>>>>usage.
> >>>>>>
> >>>>>> After a few hours, I rebooted the machine, and left it for a day or
> >>>>>>so. I tried the delete again this afternoon, and it's done the same
> >>>>>>thing again. The full log is included below. I have a kworker and a
> >>>>>>btrfs-transaction pegged at close to 100% of a core each, and a
> >>>>>>btrfs-cleaner (and the btrfs dev del process) in D state.
> >>>>>>
> >>>>>> The FS was not under load at the time of the failure, and it passes
> >>>>>>scrub. I haven't tried a btrfs check yet.
> >>>>>
> >>>>>Thanks Hugo, can you nail down which line of code belongs to:
> >>>>>
> >>>>>btrfs_async_run_delayed_refs+0xc6
> >>>>
> >>>>  I'm having a spot of trouble with this. The btrfs on this kernel is
> >>>>built-in, and I've lost the contents of the build directory (it's done
> >>>>by an overnight build script, and it's already built a 4.8-rc1 for one
> >>>>of my other machines).
> >>>>
> >>>>(gdb) file /boot/vmlinuz-4.7.0-dirty
> >>>>BFD: /boot/vmlinuz-4.7.0-dirty: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
> >>>>Reading symbols from /boot/vmlinuz-4.7.0-dirty...(no debugging symbols found)...done.
> >>>>(gdb) list *btrfs_async_run_delayed_refs+0xc6
> >>>>No symbol table is loaded.  Use the "file" command.
> >>>>
> >>>>  There must be a way of getting this info from here, but I'm not
> >>>>sure I know what it is. Build a new kernel from 4.7 with this
> >>>>machine's config and run gdb on the btrfs.o file? Not a problem to do,
> >>>>but it might take a little while.
> >>>
> >>>As long as you use the same gcc and config file, it'll almost always
> >>>generate the same offsets/code.  You can recompile with debug
> >>>symbols on and it'll be accurate.
> >>
> >>   OK. Back later.
> >
> >(gdb) file fs/btrfs/btrfs.o
> >Reading symbols from fs/btrfs/btrfs.o...done.
> >(gdb) list *btrfs_async_run_delayed_refs+0xc6
> >0x13dae is in btrfs_async_run_delayed_refs (fs/btrfs/extent-tree.c:2915).
> >2910	
> >2911		btrfs_queue_work(root->fs_info->extent_workers, &async->work);
> >2912		
> >2913			if (wait) {
> >2914			   	  wait_for_completion(&async->wait);
> >2915						ret = async->error;
> >2916						      kfree(async);
> >2917								return ret;
> >2918								       }
> >2919									return 0;
> 
> So its waiting on the actual delayed ref work but we don't see them
> in the stack trace.
> 
> Can you please sysrq-w and sysrq-t?

   Not right now -- I wanted to watch a film, and rebooted the machine
to get NFS working again. It's now refusing to boot. I think that's
unrelated to this issue (different filesystems are involved for a
start), but it's stopping me from doing anything else. :(

   I'll reproduce the failure, and get back to you with the sysrq
dumps tomorrow.

   Hugo.

-- 
Hugo Mills             | You shouldn't anthropomorphise computers. They
hugo@... carfax.org.uk | really don't like that.
http://carfax.org.uk/  |
PGP: E2AB1DE4          |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: btrfs dev del hangs on 4.7
  2016-08-09 19:41             ` Hugo Mills
@ 2016-08-10 22:25               ` Hugo Mills
  0 siblings, 0 replies; 9+ messages in thread
From: Hugo Mills @ 2016-08-10 22:25 UTC (permalink / raw)
  To: Chris Mason, Btrfs mailing list

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

On Tue, Aug 09, 2016 at 07:41:42PM +0000, Hugo Mills wrote:
> On Tue, Aug 09, 2016 at 03:22:03PM -0400, Chris Mason wrote:
> > 
> > 
> > On 08/09/2016 03:11 PM, Hugo Mills wrote:
> > >On Tue, Aug 09, 2016 at 06:27:33PM +0000, Hugo Mills wrote:
> > >>On Tue, Aug 09, 2016 at 02:26:14PM -0400, Chris Mason wrote:
> > >>>On 08/09/2016 02:23 PM, Hugo Mills wrote:
> > >>>>  Hi, Chris,
> > >>>>
> > >>>>On Tue, Aug 09, 2016 at 02:02:20PM -0400, Chris Mason wrote:
> > >>>>>On 08/09/2016 01:27 PM, Hugo Mills wrote:
> > >>>>>> Over the weekend, I started doing some maintenance on my server: I
> > >>>>>>upgraded to 4.7.0, and I started deleting a device from my array,
> > >>>>>>preparatory to putting in a larger one. About halfway through the
> > >>>>>>operation, several kernel threads hung up for a while (resulting in
> > >>>>>>"blocked for 120s" messages), and then the delete process seems to
> > >>>>>>have stopped entirely, although several kernel threads are at maximum
> > >>>>>>usage.
> > >>>>>>
> > >>>>>> After a few hours, I rebooted the machine, and left it for a day or
> > >>>>>>so. I tried the delete again this afternoon, and it's done the same
> > >>>>>>thing again. The full log is included below. I have a kworker and a
> > >>>>>>btrfs-transaction pegged at close to 100% of a core each, and a
> > >>>>>>btrfs-cleaner (and the btrfs dev del process) in D state.
> > >>>>>>
> > >>>>>> The FS was not under load at the time of the failure, and it passes
> > >>>>>>scrub. I haven't tried a btrfs check yet.
> > >>>>>
> > >>>>>Thanks Hugo, can you nail down which line of code belongs to:
> > >>>>>
> > >>>>>btrfs_async_run_delayed_refs+0xc6
> > >>>>
> > >>>>  I'm having a spot of trouble with this. The btrfs on this kernel is
> > >>>>built-in, and I've lost the contents of the build directory (it's done
> > >>>>by an overnight build script, and it's already built a 4.8-rc1 for one
> > >>>>of my other machines).
> > >>>>
> > >>>>(gdb) file /boot/vmlinuz-4.7.0-dirty
> > >>>>BFD: /boot/vmlinuz-4.7.0-dirty: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .bss
> > >>>>Reading symbols from /boot/vmlinuz-4.7.0-dirty...(no debugging symbols found)...done.
> > >>>>(gdb) list *btrfs_async_run_delayed_refs+0xc6
> > >>>>No symbol table is loaded.  Use the "file" command.
> > >>>>
> > >>>>  There must be a way of getting this info from here, but I'm not
> > >>>>sure I know what it is. Build a new kernel from 4.7 with this
> > >>>>machine's config and run gdb on the btrfs.o file? Not a problem to do,
> > >>>>but it might take a little while.
> > >>>
> > >>>As long as you use the same gcc and config file, it'll almost always
> > >>>generate the same offsets/code.  You can recompile with debug
> > >>>symbols on and it'll be accurate.
> > >>
> > >>   OK. Back later.
> > >
> > >(gdb) file fs/btrfs/btrfs.o
> > >Reading symbols from fs/btrfs/btrfs.o...done.
> > >(gdb) list *btrfs_async_run_delayed_refs+0xc6
> > >0x13dae is in btrfs_async_run_delayed_refs (fs/btrfs/extent-tree.c:2915).
> > >2910	
> > >2911		btrfs_queue_work(root->fs_info->extent_workers, &async->work);
> > >2912		
> > >2913			if (wait) {
> > >2914			   	  wait_for_completion(&async->wait);
> > >2915						ret = async->error;
> > >2916						      kfree(async);
> > >2917								return ret;
> > >2918								       }
> > >2919									return 0;
> > 
> > So its waiting on the actual delayed ref work but we don't see them
> > in the stack trace.
> > 
> > Can you please sysrq-w and sysrq-t?
> 
>    Not right now -- I wanted to watch a film, and rebooted the machine
> to get NFS working again. It's now refusing to boot. I think that's
> unrelated to this issue (different filesystems are involved for a
> start), but it's stopping me from doing anything else. :(
> 
>    I'll reproduce the failure, and get back to you with the sysrq
> dumps tomorrow.

   I restarted the device delete this evening, and it's not thrown the
error again. I'll be doing some more device reorganisation over the
next week or two, so it may happen again, but for now, I think we'll
have to write this report off as an undiagnosed transient error.

   Hugo.

-- 
Hugo Mills             | I thought I'd discovered a new colour, but it was
hugo@... carfax.org.uk | just a pigment of my imagination.
http://carfax.org.uk/  |
PGP: E2AB1DE4          |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-08-10 22:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-09 17:27 btrfs dev del hangs on 4.7 Hugo Mills
2016-08-09 18:02 ` Chris Mason
2016-08-09 18:23   ` Hugo Mills
2016-08-09 18:26     ` Chris Mason
2016-08-09 18:27       ` Hugo Mills
2016-08-09 19:11         ` Hugo Mills
2016-08-09 19:22           ` Chris Mason
2016-08-09 19:41             ` Hugo Mills
2016-08-10 22:25               ` Hugo Mills

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox