Message ID | 20180723201748.25573-59-mdroth@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D590491E for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:04:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6CE8284B3 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:04:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB0D1284BE; Mon, 23 Jul 2018 21:04:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 609D7284B3 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 23 Jul 2018 21:04:01 +0000 (UTC) Received: from localhost ([::1]:36615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1fhhzs-00071m-In for patchwork-qemu-devel@patchwork.kernel.org; Mon, 23 Jul 2018 17:04:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhJu-0003Ad-JI for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:20:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhJt-0004rW-K1 for qemu-devel@nongnu.org; Mon, 23 Jul 2018 16:20:38 -0400 Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:34563) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <flukshun@gmail.com>) id 1fhhJt-0004rI-Dv; Mon, 23 Jul 2018 16:20:37 -0400 Received: by mail-oi0-x22f.google.com with SMTP id 13-v6so3505790ois.1; Mon, 23 Jul 2018 13:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=5/hLiQrUtX4DP48kiLIpTEF5NgdxyUdRCA9tb0HzHH8=; b=ZZ19ESyFhxR94l7E34KKrwV/jLRNFd6zNHMnqcoHYfbF6Vg7i23Q0x2M9hmDFhyJJ9 RyM4szm93nuAnz1jynI4ZKge6IgMintRECjj9zYfNWOehGavW6PYqwYOn7ctqYaQvAri 52JobMj3+AAy9WjSdB5Ry7naQTWXO4+58UE/P2Kjh78JXq/HwSF9tpNiSdZrIFWzZGrP zURr4ecGHPFuSShpT1bJTds3dkSv6i4dUr+pqu6hJyFAJhehxX8z60l1gas0ujJ6EKQV iyKQIgXYIQnsGez9pWlHDN0dSio//fJYGEgCYd+uIUiQ4AHqcE7BhxGtSyFtskE11keL /7Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=5/hLiQrUtX4DP48kiLIpTEF5NgdxyUdRCA9tb0HzHH8=; b=ovF48TH/IizulB+2LghvtzGENImdLzEUxivHspvxAgYlk5Nx60jOfHo78mb3YIJr22 YUFnxO0GjcsEd4nw2bmA+lcnNXpztIYgBhffsUwbSgmt99ZDCF8xMwF87vEWWzOJfvum dh7XfGaIei0ekfWljm/nMTp0bNH2K9UUJQT+Edx7rxLWiNZnijBiD5selAEzmbbO2bBX v965NIi+iiJJMMFhWGHqYText3A732NaqjJhYHGiTXLQl/ogK27uLP3M+FigsW/Qo8Q5 Uo0dBVNpJH6FR79FyUM+eQRPR/wwMD6+VCZp7ah0sxForv/Ooy/S7fhGucbqcw/TIqDR /gvQ== X-Gm-Message-State: AOUpUlGduliZ4htpK+mWh6bigj/71cSgQ5zhSUVs12wMV5WNUQU4OwkZ 362GqxN2lBUl//I6Zk+aP9UY2W+a2789mg== X-Google-Smtp-Source: AAOMgpeXdGV2MryByXaAKAAYJLqrxmDCfDHXyz6CwIQlYVp7VzTA5tXcT/j1goLxQuvaakh2bA/pcg== X-Received: by 2002:aca:305:: with SMTP id 5-v6mr340255oid.84.1532377236295; Mon, 23 Jul 2018 13:20:36 -0700 (PDT) Received: from localhost (76-251-165-188.lightspeed.austtx.sbcglobal.net. [76.251.165.188]) by smtp.gmail.com with ESMTPSA id r81-v6sm14555505oih.28.2018.07.23.13.20.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jul 2018 13:20:35 -0700 (PDT) From: Michael Roth <mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Date: Mon, 23 Jul 2018 15:17:07 -0500 Message-Id: <20180723201748.25573-59-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> References: <20180723201748.25573-1-mdroth@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22f Subject: [Qemu-devel] [PATCH 58/99] block/mirror: Make cancel always cancel pre-READY X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Jeff Cody <jcody@redhat.com>, qemu-stable@nongnu.org, Max Reitz <mreitz@redhat.com> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Patch Round-up for stable 2.12.1, freeze on 2018-07-30
|
expand
|
diff --git a/block/mirror.c b/block/mirror.c index 9436a8d5ee..99da9c0858 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -874,7 +874,9 @@ static void coroutine_fn mirror_run(void *opaque) } trace_mirror_before_sleep(s, cnt, s->synced, delay_ns); block_job_sleep_ns(&s->common, delay_ns); - if (block_job_is_cancelled(&s->common) && s->common.force) { + if (block_job_is_cancelled(&s->common) && + (!s->synced || s->common.force)) + { break; } s->last_pause_ns = qemu_clock_get_ns(QEMU_CLOCK_REALTIME);