From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Hetze Subject: Re: syscall rmdir hangs with autofs Date: Mon, 19 Jul 2010 15:45:58 +0200 Message-ID: <20100719134558.C4441A005F@mail.linux-ag.de> References: <20100719083932.187C6303001B@mail.linux-ag.de> <4C44333B.5090709@redhat.com> <20100719114034.62BDD30303F5@mail.linux-ag.de> <4C444358.8010500@redhat.com> <20100719124847.0CDBBA005F@mail.linux-ag.de> <4C444E78.8030907@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sebastian Hetze , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from ironport.linux-ag.com ([62.245.157.240]:33943 "EHLO ironport.linux-ag.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933069Ab0GSNqA (ORCPT ); Mon, 19 Jul 2010 09:46:00 -0400 Received: from localhost (mail.linux-ag.de [62.245.157.206]) by mail.linux-ag.de (Postfix) with ESMTP id C4441A005F for ; Mon, 19 Jul 2010 15:45:58 +0200 (CEST) Content-Disposition: inline In-Reply-To: <4C444E78.8030907@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, Jul 19, 2010 at 04:09:12PM +0300, Avi Kivity wrote: > On 07/19/2010 03:48 PM, Sebastian Hetze wrote: >> >>> Looks like a false alarm then. The rmdir is waiting for the mount to >>> flush everything to disk, which is slow and takes a while. >>> >>> Does it return eventually? >>> >> No, it does not return within hours (>10). And the problem occurs only >> once in a while although the system is busy every day (and night) >> and automount is mounting/expiring frequently. >> >> I would expect the "/bin/umount dir" process (which is forked by >> automount if I read the code correctly) to return only after the flush >> is complete. So I expect the rmdir being called afterwards on an plain >> empty directory. >> >> BTW: the mount is just a bind mount, so no flush should be necessary >> anyway. >> > > It looks like VFS breakage. Does this happen with older guest kernels? currently I can confirm this problem with 2.6.31-22-generic-pae back to 2.6.31-16-generic-pae. What guest kernel version would you suggest?