From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Fw: Re: Process hangs copying large file to cifs filesystem Date: Fri, 25 Jun 2004 01:29:31 -0700 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <20040625012931.16e4c7f5.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from fw.osdl.org ([65.172.181.6]:5249 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S266358AbUFYIax (ORCPT ); Fri, 25 Jun 2004 04:30:53 -0400 To: "viro@parcelfarce.linux.theplanet.co.uk" , Steven French List-Id: linux-fsdevel.vger.kernel.org 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? b) Why does __mark_inode_dirty() skip unhashed inodes anyway? Taking the hlist_unhashed() test out fixed it up, although CIFS only wants to write stuff out at 2 Mbytes/sec on 100bT, whereas NFS does wirespeed... Begin forwarded message: Date: Wed, 23 Jun 2004 12:44:54 +0100 From: Nuno Ferreira To: Jens Axboe Cc: Linux Kernel Subject: Re: Process hangs copying large file to cifs filesystem On Sex, 2004-05-28 at 17:04 +0100, Nuno Ferreira wrote: > On Sex, 2004-05-28 at 16:22 +0200, Jens Axboe wrote: > > On Fri, May 28 2004, Nuno Ferreira wrote: > > > On Qui, 2004-05-27 at 16:45 +0100, Nuno Ferreira wrote: > > > > Hi, > > > > I'm trying to copy a large file (200Mb or bigger) from an ext3 > > > > filesystem to a windows share mounted using CIFS and the cp process > > > > hangs, sometimes for a long time (several minutes). > > > > Calling ps, I can see that it's blocking on blk_congestion_wait. > [...] > > > > A sysrq-t back trace of that process would be interesting to see.