From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33944) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQyz2-0008Sr-D0 for qemu-devel@nongnu.org; Fri, 21 Mar 2014 08:55:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQyyt-0005rf-Pd for qemu-devel@nongnu.org; Fri, 21 Mar 2014 08:55:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQyyt-0005rb-Hd for qemu-devel@nongnu.org; Fri, 21 Mar 2014 08:55:27 -0400 From: Stefan Hajnoczi Date: Fri, 21 Mar 2014 13:55:17 +0100 Message-Id: <1395406519-21410-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH for-2.0 0/2] mirror: fix rate-limiting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Michal Privoznik , Jeff Cody , Joaquim Barrera , Stefan Hajnoczi , Paolo Bonzini Rate-limiting is broken for drive-mirror because the calculations are performed using an inaccurate sector count and aio completion is waking up the sleeping coroutine early. These patches from Paolo and me fix the issue. Paolo Bonzini (1): mirror: fix throttling delay calculation Stefan Hajnoczi (1): mirror: fix early wake from sleep due to aio block/mirror.c | 37 +++++++++++++++++++++++-------------- trace-events | 2 +- 2 files changed, 24 insertions(+), 15 deletions(-) -- 1.8.5.3