Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760160AbXEPNBW (ORCPT ); Wed, 16 May 2007 09:01:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754435AbXEPNBE (ORCPT ); Wed, 16 May 2007 09:01:04 -0400 Received: from pat.uio.no ([129.240.10.15]:60497 "EHLO pat.uio.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753000AbXEPNBD (ORCPT ); Wed, 16 May 2007 09:01:03 -0400 Subject: Re: (NFS) BUG: at page-writeback.c:829 [Was: 2.6.22-rc1-mm1] From: Trond Myklebust To: Nick Piggin Cc: Jiri Slaby , Andrew Morton , linux-kernel@vger.kernel.org In-Reply-To: <464AFB81.5050109@yahoo.com.au> References: <20070515201914.16944e04.akpm@linux-foundation.org> <464AF4A6.5060000@gmail.com> <464AFB81.5050109@yahoo.com.au> Content-Type: text/plain Date: Wed, 16 May 2007 09:00:57 -0400 Message-Id: <1179320457.6521.16.camel@heimdal.trondhjem.org> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-UiO-Resend: resent X-UiO-Spam-info: not spam, SpamAssassin (score=-0.1, required=12.0, autolearn=disabled, AWL=-0.143) X-UiO-Scanned: 1EB45BAE29DC6B6464CF288E1C91C8C2A2A123D1 X-UiO-SPAM-Test: remote_host: 129.240.10.9 spam_score: 0 maxlevel 200 minaction 2 bait 0 mail/h: 25 total 1774783 max/h 8345 blacklist 0 greylist 0 ratelimit 0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1886 Lines: 43 On Wed, 2007-05-16 at 22:39 +1000, Nick Piggin wrote: > > ======================= > > 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 > > [] nfs_updatepage+0x7b/0x200 [nfs] > > [] nfs_commit_write+0x2f/0x50 [nfs] > > [] generic_file_buffered_write+0x2a1/0x660 > > [] __generic_file_aio_write_nolock+0x282/0x520 > > [] generic_file_aio_write+0x62/0xd0 > > [] nfs_file_write+0xef/0x1c0 [nfs] > > [] do_sync_write+0xd0/0x110 > > [] vfs_write+0x94/0x130 > > [] sys_write+0x3d/0x70 > > [] syscall_call+0x7/0xb > > [] 0xb7eb7b3e > > ======================= > > This one is NFS, setting the page dirty while it is not uptodate. Trond, > is this because NFS keeps track of dirty regions of the page with private > data? It might make sense to avoid this warning if PagePrivate is set... > would that fix the NFS case? Ah... You put an extra WARN_ON(!PageUptodate(page)). err=-ENOCOFFEE, I missed that... So yes, in order to avoid having to read the page in when we just want to write data, NFS does this kind of tracking. I dunno if your fix to change it to !PagePrivate(page) && !PageUptodate(page) is right though. It will indeed fix the NFS case, but the block system uses PagePrivate() pretty extensively for its own nefarious ends (tracking page buffers). Trond - 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/