From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexander Beregalov" Subject: Re: Deadlock at io_schedule? (Re: linux-next: Tree for November 3) Date: Thu, 13 Nov 2008 15:56:37 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: linux-next@vger.kernel.org, LKML , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org To: "Stephen Rothwell" Return-path: Received: from yw-out-2324.google.com ([74.125.46.31]:33958 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbYKMM4i (ORCPT ); Thu, 13 Nov 2008 07:56:38 -0500 Received: by yw-out-2324.google.com with SMTP id 9so387935ywe.1 for ; Thu, 13 Nov 2008 04:56:37 -0800 (PST) In-Reply-To: Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 2008/11/3 Alexander Beregalov : > Hi > > 2.6.28-rc3-next-20081103 on sparc64 The same on SMP x86_64, 2.6.28-rc4-next-20081113 Please have a look anybody [ 5383.663175] Showing all locks held in the system: [ 5383.663187] 1 lock held by agetty/1958: [ 5383.663190] #0: (&tty->atomic_read_lock){--..}, at: [] n_tty_read+0x29b/0x7bd [ 5383.663203] 1 lock held by agetty/1959: [ 5383.663205] #0: (&tty->atomic_read_lock){--..}, at: [] n_tty_read+0x29b/0x7bd [ 5383.663214] 1 lock held by agetty/1960: [ 5383.663216] #0: (&tty->atomic_read_lock){--..}, at: [] n_tty_read+0x29b/0x7bd [ 5383.663224] 1 lock held by agetty/1963: [ 5383.663226] #0: (&tty->atomic_read_lock){--..}, at: [] n_tty_read+0x29b/0x7bd [ 5383.663234] 1 lock held by agetty/1964: [ 5383.663236] #0: (&tty->atomic_read_lock){--..}, at: [] n_tty_read+0x29b/0x7bd [ 5383.663244] 1 lock held by agetty/1966: [ 5383.663246] #0: (&tty->atomic_read_lock){--..}, at: [] n_tty_read+0x29b/0x7bd [ 5383.663255] 2 locks held by bash/2011: [ 5383.663257] #0: (sysrq_key_table_lock){....}, at: [] __handle_sysrq+0x26/0x158 [ 5383.663264] #1: (tasklist_lock){..--}, at: [] debug_show_all_locks+0x4d/0x17f [ 5383.663274] 1 lock held by bash/2028: [ 5383.663276] #0: (&(&ip->i_iolock)->mr_lock){----}, at: [] xfs_ilock+0x44/0x79 [ 5383.663285] [ 5383.663287] ============================================= [ 5383.663288] [ 5394.063573] SysRq : Show Blocked State [ 5394.063608] task PC stack pid father [ 5394.063624] pdflush D ffff880004d9a740 3256 313 2 [ 5394.063631] ffff88007d265d50 0000000000000046 ffff88007dac4a80 ffff88007dac4a80 [ 5394.063638] ffffffff80930740 ffffffff80930740 ffff88007dac4a80 ffff88007d8092a0 [ 5394.063645] ffff88007dac4dc8 0000000180231acf ffff88007d265ce0 ffff88007dac4dc8 [ 5394.063652] Call Trace: [ 5394.063661] [] ? _spin_unlock_irqrestore+0x66/0x74 [ 5394.063667] [] ? __mod_timer+0xd3/0xe5 [ 5394.063671] [] schedule_timeout+0x8d/0xb4 [ 5394.063675] [] ? process_timeout+0x0/0xb [ 5394.063679] [] ? __mod_timer+0x1d/0xe5 [ 5394.063683] [] __sched_text_start+0x2d/0x39 [ 5394.063688] [] congestion_wait+0x6b/0x87 [ 5394.063692] [] ? autoremove_wake_function+0x0/0x38 [ 5394.063697] [] ? writeback_inodes+0xec/0xf4 [ 5394.063702] [] wb_kupdate+0xc4/0x11e [ 5394.063706] [] pdflush+0x11a/0x1cd [ 5394.063710] [] ? wb_kupdate+0x0/0x11e [ 5394.063713] [] ? pdflush+0x0/0x1cd [ 5394.063717] [] kthread+0x49/0x76 [ 5394.063722] [] child_rip+0xa/0x11 [ 5394.063727] [] ? finish_task_switch+0x0/0xb9 [ 5394.063730] [] ? restore_args+0x0/0x30 [ 5394.063734] [] ? kthread+0x0/0x76 [ 5394.063737] [] ? child_rip+0x0/0x11 [ 5394.063741] xfsbufd D ffff880005138740 6032 695 2 [ 5394.063748] ffff88007cf35c80 0000000000000046 ffff88007cf35bf0 ffffffff80255c61 [ 5394.063754] ffffffff80930740 ffffffff80930740 ffff88007cf70000 ffff88007dfa4a80 [ 5394.063760] ffff88007cf70348 0000000380255c61 ffff88007cf70000 ffff88007cf70348 [ 5394.063765] Call Trace: [ 5394.063770] [] ? get_lock_stats+0x2d/0x5c [ 5394.063773] [] ? put_lock_stats+0xe/0x27 [ 5394.063777] [] ? get_parent_ip+0x11/0x41 [ 5394.063781] [] io_schedule+0x2d/0x39 [ 5394.063786] [] get_request_wait+0x10a/0x1a6 [ 5394.063790] [] ? autoremove_wake_function+0x0/0x38 [ 5394.063794] [] ? elv_merge+0x16d/0x19e [ 5394.063798] [] __make_request+0x3b3/0x4b1 [ 5394.063802] [] ? mempool_alloc+0x56/0x10e [ 5394.063806] [] generic_make_request+0x2f4/0x337 [ 5394.063810] [] ? sub_preempt_count+0xb0/0xc4 [ 5394.063813] [] submit_bio+0x99/0xa2 [ 5394.063818] [] _xfs_buf_ioapply+0x215/0x243 [ 5394.063822] [] xfs_buf_iorequest+0x44/0x75 [ 5394.063826] [] xfs_bdstrat_cb+0x19/0x3e [ 5394.063830] [] xfs_buf_iostrategy+0x12/0x1b [ 5394.063833] [] xfsbufd+0xa8/0xe9 [ 5394.063837] [] ? xfsbufd+0x0/0xe9 [ 5394.063840] [] kthread+0x49/0x76 [ 5394.063844] [] child_rip+0xa/0x11 [ 5394.063848] [] ? finish_task_switch+0x0/0xb9 [ 5394.063856] [] ? restore_args+0x0/0x30 [ 5394.063858] [] ? kthread+0x0/0x76 [ 5394.063861] [] ? child_rip+0x0/0x11 [ 5394.063863] bash D ffff880004d9a740 5240 2028 2015 [ 5394.063868] ffff8800730f1a88 0000000000000046 0000000000000001 ffff88007ca26430 [ 5394.063872] ffffffff80930740 ffffffff80930740 ffff88007ca25d20 ffff88007df62540 [ 5394.063876] ffff88007ca26068 0000000180aacde0 ffff8800730f1a38 ffff88007ca26068 [ 5394.063880] Call Trace: [ 5394.063883] [] ? generic_unplug_device+0x1d/0x46 [ 5394.063885] [] io_schedule+0x2d/0x39 [ 5394.063888] [] sync_page+0x69/0x70 [ 5394.063890] [] sync_page_killable+0xe/0x46 [ 5394.063893] [] __wait_on_bit_lock+0x45/0x79 [ 5394.063895] [] ? sync_page_killable+0x0/0x46 [ 5394.063897] [] __lock_page_killable+0x63/0x6a [ 5394.063900] [] ? wake_bit_function+0x0/0x2a [ 5394.063902] [] ? find_get_page+0x75/0x85 [ 5394.063905] [] lock_page_killable+0x32/0x3a [ 5394.063907] [] generic_file_aio_read+0x39d/0x581 [ 5394.063910] [] ? xfs_ilock+0x44/0x79 [ 5394.063913] [] xfs_read+0x17b/0x1f2 [ 5394.063915] [] xfs_file_aio_read+0x51/0x53 [ 5394.063919] [] do_sync_read+0xe7/0x12d [ 5394.063921] [] ? sub_preempt_count+0xb0/0xc4 [ 5394.063924] [] ? autoremove_wake_function+0x0/0x38 [ 5394.063926] [] ? lock_release_holdtime+0xb2/0xb7 [ 5394.063929] [] vfs_read+0xa4/0xde [ 5394.063932] [] kernel_read+0x43/0x5b [ 5394.063935] [] ? might_fault+0x4d/0xa1 [ 5394.063937] [] prepare_binprm+0xdd/0xe1 [ 5394.063939] [] do_execve+0xde/0x1da [ 5394.063942] [] sys_execve+0x3e/0x60 [ 5394.063944] [] stub_execve+0x6a/0xc0