From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOSA6-0005cv-Lr for qemu-devel@nongnu.org; Fri, 14 Mar 2014 09:28:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WOS9z-0002n0-Rd for qemu-devel@nongnu.org; Fri, 14 Mar 2014 09:28:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WOS9z-0002mh-Js for qemu-devel@nongnu.org; Fri, 14 Mar 2014 09:28:27 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2EDSQ0I003891 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 14 Mar 2014 09:28:27 -0400 Message-ID: <532303F8.8010705@redhat.com> Date: Fri, 14 Mar 2014 14:28:24 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20140313214814.GC1985@redhat.com> <5322F670.50906@redhat.com> <20140314124216.GQ1346@redhat.com> <5322FA7F.3030802@redhat.com> <20140314132433.GS1346@redhat.com> In-Reply-To: <20140314132433.GS1346@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] fstrim & upstream kernel not working List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: qemu-devel@nongnu.org Il 14/03/2014 14:24, Richard W.M. Jones ha scritto: >> > Could be a race condition (something going on in the background >> > between rm and fstrim). > Not much happens in the libguestfs appliance. There are usually only > two processes (udev + guestfsd). There's also the kernel. The ext4 driver is probably doing something after rm returns, and hasn't finished yet when you invoke FITRIM. Paolo