Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754080Ab1C1WAQ (ORCPT ); Mon, 28 Mar 2011 18:00:16 -0400 Received: from mx3.twosigma.com ([208.77.213.34]:61105 "EHLO mx3.twosigma.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283Ab1C1WAO convert rfc822-to-8bit (ORCPT ); Mon, 28 Mar 2011 18:00:14 -0400 X-Greylist: delayed 1562 seconds by postgrey-1.27 at vger.kernel.org; Mon, 28 Mar 2011 18:00:14 EDT From: Sean Noonan To: "'Michel Lespinasse'" CC: Christoph Hellwig , "linux-kernel@vger.kernel.org" , Martin Bligh , Trammell Hudson , Christos Zoulas , "linux-xfs@oss.sgi.com" , Stephen Degler , "linux-mm@kvack.org" Date: Mon, 28 Mar 2011 17:34:09 -0400 Subject: RE: XFS memory allocation deadlock in 2.6.38 Thread-Topic: XFS memory allocation deadlock in 2.6.38 Thread-Index: AcvtjAU49kGOL4scQ4KHhTRnHL+diAAAO36w Message-ID: <081DDE43F61F3D43929A181B477DCA95639B534E@MSXAOA6.twosigma.com> References: <081DDE43F61F3D43929A181B477DCA95639B52FD@MSXAOA6.twosigma.com> <081DDE43F61F3D43929A181B477DCA95639B5327@MSXAOA6.twosigma.com> <20110324174311.GA31576@infradead.org> <081DDE43F61F3D43929A181B477DCA95639B5349@MSXAOA6.twosigma.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1809 Lines: 44 > Could you test if you see the deadlock before > 5ecfda041e4b4bd858d25bbf5a16c2a6c06d7272 without MAP_POPULATE ? Built and tested 72ddc8f72270758951ccefb7d190f364d20215ab. Confirmed that the original bug does not present in this version. Confirmed that removing MAP_POPULATE does cause the deadlock to occur. Here is the stack of the test: # cat /proc/3846/stack [] call_rwsem_down_read_failed+0x14/0x30 [] xfs_ilock+0x9d/0x110 [] xfs_ilock_map_shared+0x1e/0x50 [] __xfs_get_blocks+0xc5/0x4e0 [] xfs_get_blocks+0xc/0x10 [] do_mpage_readpage+0x462/0x660 [] mpage_readpage+0x4a/0x60 [] xfs_vm_readpage+0x13/0x20 [] filemap_fault+0x2d0/0x4e0 [] __do_fault+0x50/0x510 [] handle_mm_fault+0x1a2/0xe60 [] do_page_fault+0x146/0x440 [] page_fault+0x1f/0x30 [] 0xffffffffffffffff xfssyncd is stuck in D state. # cat /proc/2484/stack [] down+0x3c/0x50 [] xfs_buf_lock+0x72/0x170 [] xfs_getsb+0x1d/0x50 [] xfs_trans_getsb+0x5f/0x150 [] xfs_mod_sb+0x4e/0xe0 [] xfs_fs_log_dummy+0x5a/0xb0 [] xfs_sync_worker+0x83/0x90 [] xfssyncd+0x172/0x220 [] kthread+0x96/0xa0 [] kernel_thread_helper+0x4/0x10 [] 0xffffffffffffffff Sean -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/