From: Andrew Morton Subject: Re: Fw: Re: Process hangs copying large file to cifs filesystem Date: Fri, 25 Jun 2004 11:32:14 -0700 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20040625113214.3324d830.akpm@osdl.org> References: <20040625012931.16e4c7f5.akpm@osdl.org> <20040625145234.GN12308@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: sfrench@us.ibm.com, linux-fsdevel@vger.kernel.org, Linus Torvalds Return-path: Received: from fw.osdl.org ([65.172.181.6]:61657 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S266830AbUFYSeQ (ORCPT ); Fri, 25 Jun 2004 14:34:16 -0400 To: viro@parcelfarce.linux.theplanet.co.uk In-Reply-To: <20040625145234.GN12308@parcelfarce.linux.theplanet.co.uk> List-Id: linux-fsdevel.vger.kernel.org viro@parcelfarce.linux.theplanet.co.uk wrote: > > 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. hm. Well cifs inodes seem to have unique i_ino's somehow. > > 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... Linus, why does __mark_inode_dirty() skip unhashed inodes?