Received: from eggs.gnu.org ([2001:4830:134:3::10]:44514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu127-0005EM-UC for qemu-devel@nongnu.org; Tue, 02 Jul 2013 09:54:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uu122-0004Nx-Se for qemu-devel@nongnu.org; Tue, 02 Jul 2013 09:54:15 -0400 Date: Tue, 2 Jul 2013 15:54:07 +0200 From: Kevin Wolf Message-ID: <20130702135407.GF3031@dhcp-200-207.str.redhat.com> References: <1372772185-10958-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1372772185-10958-1-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] block: fix bdrv_flush() ordering in bdrv_close() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org Am 02.07.2013 um 15:36 hat Stefan Hajnoczi geschrieben: > Since 80ccf93b we flush the block device during close. The > bdrv_drain_all() call should come before bdrv_flush() to ensure guest > write requests have completed. Otherwise we may miss pending writes > when flushing. > > Call bdrv_drain_all() again for safety as the final step after > bdrv_flush(). This should not be necessary but we can be paranoid here > in case bdrv_flush() left I/O pending. > > Cc: qemu-stable@nongnu.org > Signed-off-by: Stefan Hajnoczi Reviewed-by: Kevin Wolf