Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762079AbXEPMr5 (ORCPT ); Wed, 16 May 2007 08:47:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761339AbXEPMrs (ORCPT ); Wed, 16 May 2007 08:47:48 -0400 Received: from smtp109.mail.mud.yahoo.com ([209.191.85.219]:43775 "HELO smtp109.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1760304AbXEPMrr (ORCPT ); Wed, 16 May 2007 08:47:47 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=Received:X-YMail-OSG:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type; b=nO/cViuCDZBDVxxl7uSyKtOMyU/c8F5hREYG0+R/jefUP5u6soP1xqctcajYzJMZX3uucuT+03EBl75p1ql49dnsWARLlNDC2jlOm1aXhnUSaa+X3UnxQDjqI1CqlByrirEbD730/Z3RksK6+CBqXS1qt8PGvmFoA+rI4b3a4Zs= ; X-YMail-OSG: qvmcrHkVM1mpjMqDXb_b819F5Zzt5jwYcJvvSsZ1oByJx4.mukrETVQXG6XN3fOCupvEsiDrbp6N1Q5JZoM0yE4m6GN.sIAaEYxHoZwpKKle.iEPgKb5CBqCuzznpw-- Message-ID: <464AFD6D.4000103@yahoo.com.au> Date: Wed, 16 May 2007 22:47:41 +1000 From: Nick Piggin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051007 Debian/1.7.12-1 X-Accept-Language: en MIME-Version: 1.0 To: Jiri Slaby CC: Andrew Morton , linux-kernel@vger.kernel.org, trond.myklebust@fys.uio.no Subject: Re: (NFS) BUG: at page-writeback.c:829 [Was: 2.6.22-rc1-mm1] References: <20070515201914.16944e04.akpm@linux-foundation.org> <464AF4A6.5060000@gmail.com> <464AFB81.5050109@yahoo.com.au> <464AFCC6.5030208@gmail.com> In-Reply-To: <464AFCC6.5030208@gmail.com> Content-Type: multipart/mixed; boundary="------------060001010401020003080106" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2773 Lines: 82 This is a multi-part message in MIME format. --------------060001010401020003080106 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Jiri Slaby wrote: > Nick Piggin napsal(a): > >>Jiri Slaby wrote: >> >>>Andrew Morton napsal(a): >>> >>> >>>>ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc1/2.6.22-rc1-mm1/ >>>> >>> >>> >>>I've got this in dmesg: >>> >>>BUG: at /local/xslaby/xxx/mm/page-writeback.c:829 >>>__set_page_dirty_nobuffers() >>> [] dump_trace+0x1ce/0x200 >>> [] show_trace_log_lvl+0x1a/0x30 >>> [] show_trace+0x12/0x20 >>> [] dump_stack+0x16/0x20 >>> [] __set_page_dirty_nobuffers+0x11d/0x130 >>> [] redirty_page_for_writepage+0x10/0x20 >>> [] __block_write_full_page+0x20c/0x330 >>> [] block_write_full_page+0xea/0x100 >>> [] blkdev_writepage+0x12/0x20 >>> [] __writepage+0xe/0x30 >>> [] write_cache_pages+0x222/0x340 >>> [] generic_writepages+0x23/0x30 >>> [] do_writepages+0x2e/0x50 >>> [] __writeback_single_inode+0x8b/0x470 >>> [] generic_sync_sb_inodes+0x24b/0x470 >>> [] sync_sb_inodes+0x27/0x30 >>> [] writeback_inodes+0xb3/0xe0 >>> [] wb_kupdate+0x82/0xf0 >>> [] pdflush+0xeb/0x1b0 >>> [] kthread+0x42/0x70 >>> [] kernel_thread_helper+0x7/0x1c >> >>Do you have any messages before this one? Seems like it is probably >>metadata, >>but we've only caught it at the last minute... > > > No other messages before that. Bazillion through-nfs stacks after this... Does this patch fix NFS? -- SUSE Labs, Novell Inc. --------------060001010401020003080106 Content-Type: text/plain; name="nfs-invariant-fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="nfs-invariant-fix.patch" Index: linux-2.6/mm/page-writeback.c =================================================================== --- linux-2.6.orig/mm/page-writeback.c +++ linux-2.6/mm/page-writeback.c @@ -826,7 +826,7 @@ int __set_page_dirty_nobuffers(struct pa mapping2 = page_mapping(page); if (mapping2) { /* Race with truncate? */ BUG_ON(mapping2 != mapping); - WARN_ON(!PageUptodate(page)); + WARN_ON(!PagePrivate(page) && !PageUptodate(page)); if (mapping_cap_account_dirty(mapping)) { __inc_zone_page_state(page, NR_FILE_DIRTY); task_io_account_write(PAGE_CACHE_SIZE); --------------060001010401020003080106-- - 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/