From: Colin Cross Subject: Re: linux-next: Tree for Aug 7 [ call-trace on suspend: ext4 | pm related ? ] Date: Wed, 7 Aug 2013 18:12:23 -0700 Message-ID: References: <2146168.3J7W6RtiZr@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: "Rafael J. Wysocki" , Stephen Rothwell , linux-next@vger.kernel.org, lkml , Ext4 Developers List , "Theodore Ts'o" , Linux PM List , Tejun Heo To: sedat.dilek@gmail.com Return-path: Received: from mail-oa0-f49.google.com ([209.85.219.49]:56845 "EHLO mail-oa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757314Ab3HHBMY (ORCPT ); Wed, 7 Aug 2013 21:12:24 -0400 Received: by mail-oa0-f49.google.com with SMTP id n10so4494468oag.22 for ; Wed, 07 Aug 2013 18:12:23 -0700 (PDT) In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: On Wed, Aug 7, 2013 at 6:01 PM, Sedat Dilek wrote: > On Thu, Aug 8, 2013 at 1:34 AM, Colin Cross wrote: >> On Wed, Aug 7, 2013 at 4:15 PM, Sedat Dilek wrote: >>> On Thu, Aug 8, 2013 at 12:58 AM, Colin Cross wrote: >>>> Can you try add a call to show_state_filter(TASK_UNINTERRUPTIBLE) in >>>> the error path of try_to_freeze_tasks(), where it prints the "refusing >>>> to freeze" message? It will print the stack trace of every thread >>>> since they are all in the freezer, so the output will be very long. >>>> >>> >>> If you provide a patch, I will give it a try. >> >> Try the attached patch. > > This time I do not see ext4 related messages. > > - Sedat - Can you describe your filesystem setup? It looks like you have an ntfs fuse filesystem and a loopback ext4 mount? Is the file backing the loopback ext4 filesystem located on the ntfs filesystem? This looks like the interesting part, the process backing the fuse filesystem is frozen (through the normal freeze path, not any of my new freeze points), and the loop0 processes are blocked on it. It doesn't seem related to my patches. [ 125.336205] mount.ntfs D ffffffff81811820 0 303 1 0x00000004 [ 125.336209] ffff8800d3e95d18 0000000000000002 0000000037a6b000 ffff8800d57a66b8 [ 125.336212] ffff8801185286c0 ffff8800d3e95fd8 ffff8800d3e95fd8 ffff8800d3e95fd8 [ 125.336214] ffffffff81c144a0 ffff8801185286c0 ffff8800d3e95d08 ffff8801185286c0 [ 125.336217] Call Trace: [ 125.336225] [] schedule+0x29/0x70 [ 125.336230] [] __refrigerator+0x43/0xe0 [ 125.336234] [] get_signal_to_deliver+0x5b9/0x600 [ 125.336238] [] ? fuse_dev_read+0x68/0x80 [ 125.336242] [] do_signal+0x58/0x8f0 [ 125.336246] [] ? acct_account_cputime+0x1c/0x20 [ 125.336249] [] ? do_raw_spin_unlock+0x5d/0xb0 [ 125.336252] [] ? _raw_spin_unlock+0xe/0x10 [ 125.336255] [] ? vtime_account_user+0x6d/0x80 [ 125.336258] [] do_notify_resume+0x88/0xc0 [ 125.336261] [] int_signal+0x12/0x17 [ 125.336263] loop0 D ffffffff81811820 0 310 2 0x00000000 [ 125.336265] ffff8800d573d968 0000000000000002 0000000000000000 ffff8800d57aeb80 [ 125.336268] ffff880118bda740 ffff8800d573dfd8 ffff8800d573dfd8 ffff8800d573dfd8 [ 125.336270] ffff880119f98340 ffff880118bda740 ffff8800d573d968 ffff88011fad5118 [ 125.336273] Call Trace: [ 125.336278] [] ? __lock_page+0x70/0x70 [ 125.336280] [] schedule+0x29/0x70 [ 125.336283] [] io_schedule+0x8f/0xd0 [ 125.336286] [] sleep_on_page+0xe/0x20 [ 125.336288] [] __wait_on_bit_lock+0x5d/0xc0 [ 125.336291] [] __lock_page+0x67/0x70 [ 125.336294] [] ? wake_atomic_t_function+0x40/0x40 [ 125.336298] [] __generic_file_splice_read+0x59f/0x5d0 [ 125.336302] [] ? cpumask_next_and+0x38/0x50 [ 125.336305] [] ? update_sd_lb_stats+0x123/0x610 [ 125.336309] [] ? x2apic_send_IPI_mask+0x13/0x20 [ 125.336312] [] ? native_smp_send_reschedule+0x4b/0x60 [ 125.336315] [] ? resched_task+0x76/0x80 [ 125.336318] [] ? page_cache_pipe_buf_release+0x30/0x30 [ 125.336321] [] generic_file_splice_read+0x3e/0x80 [ 125.336324] [] do_splice_to+0x7b/0xa0 [ 125.336326] [] splice_direct_to_actor+0xa7/0x1c0 [ 125.336330] [] ? loop_thread+0x2a0/0x2a0 [ 125.336333] [] do_bio_filebacked+0xf2/0x340 [ 125.336336] [] ? do_raw_spin_lock+0x4c/0x120 [ 125.336339] [] loop_thread+0xe5/0x2a0 [ 125.336341] [] ? __init_waitqueue_head+0x40/0x40 [ 125.336344] [] ? do_bio_filebacked+0x340/0x340 [ 125.336346] [] kthread+0xd8/0xe0 [ 125.336348] [] ? flush_kthread_worker+0xe0/0xe0 [ 125.336351] [] ret_from_fork+0x7c/0xb0 [ 125.336353] [] ? flush_kthread_worker+0xe0/0xe0 [ 125.336354] jbd2/loop0-8 D 0000000000000000 0 312 2 0x00000000 [ 125.336357] ffff8800d56c7b08 0000000000000002 ffff8800d56c7ab8 ffffffff8137a90d [ 125.336359] ffff880037ba4240 ffff8800d56c7fd8 ffff8800d56c7fd8 ffff8800d56c7fd8 [ 125.336362] ffff88010d33e5c0 ffff880037ba4240 ffff8800d56c7b08 ffff88011fad5118 [ 125.336364] Call Trace: [ 125.336367] [] ? do_raw_spin_unlock+0x5d/0xb0 [ 125.336369] [] ? __wait_on_buffer+0x30/0x30 [ 125.336371] [] schedule+0x29/0x70 [ 125.336374] [] io_schedule+0x8f/0xd0 [ 125.336376] [] sleep_on_buffer+0xe/0x20 [ 125.336378] [] __wait_on_bit+0x62/0x90 [ 125.336380] [] ? __wait_on_buffer+0x30/0x30 [ 125.336382] [] out_of_line_wait_on_bit+0x7c/0x90 [ 125.336384] [] ? wake_atomic_t_function+0x40/0x40 [ 125.336386] [] __wait_on_buffer+0x2e/0x30 [ 125.336390] [] jbd2_journal_commit_transaction+0x1051/0x1c60 [ 125.336393] [] ? load_balance+0x14b/0x870 [ 125.336397] [] ? _raw_spin_lock_irqsave+0x24/0x30 [ 125.336399] [] ? try_to_del_timer_sync+0x4f/0x70 [ 125.336402] [] kjournald2+0x11b/0x350 [ 125.336405] [] ? __schedule+0x3e5/0x850 [ 125.336407] [] ? __init_waitqueue_head+0x40/0x40 [ 125.336410] [] ? jbd2_journal_clear_features+0x90/0x90 [ 125.336412] [] kthread+0xd8/0xe0 [ 125.336414] [] ? flush_kthread_worker+0xe0/0xe0 [ 125.336416] [] ret_from_fork+0x7c/0xb0 [ 125.336418] [] ? flush_kthread_worker+0xe0/0xe0