From: viro@parcelfarce.linux.theplanet.co.uk Subject: Re: Fw: Re: Process hangs copying large file to cifs filesystem Date: Fri, 25 Jun 2004 15:52:34 +0100 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20040625145234.GN12308@parcelfarce.linux.theplanet.co.uk> References: <20040625012931.16e4c7f5.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Steven French , linux-fsdevel@vger.kernel.org Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:8597 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S266715AbUFYOwf (ORCPT ); Fri, 25 Jun 2004 10:52:35 -0400 To: Andrew Morton Content-Disposition: inline In-Reply-To: <20040625012931.16e4c7f5.akpm@osdl.org> List-Id: linux-fsdevel.vger.kernel.org On Fri, Jun 25, 2004 at 01:29:31AM -0700, Andrew Morton wrote: > > This person's CIFS hang is happening because the hlist_unhashed() test in > __mark_inode_dirty() is returning true, so the inode never gets itself onto > sb->s_dirty. The writeback paths have no way to write out the pagecache. > > a) Why are CIFS inodes not hashed? Presumably because it never does hash lookups. I wonder where it gets inumbers from, though - keeping them unique would at least require being able to see what's already in-core. > b) Why does __mark_inode_dirty() skip unhashed inodes anyway? Ask Linus. I've always treated that as a behaviour filesystems might be using, and IIRC in some cases that was deliberately used. I have my suspicions about the origin of that animal, but that was before my time (during 2.1.50ish rewrite of inode.c) and inode.c is one place I try to touch as rarely as possible...