Message ID | 20210921102017.273679-9-vsementsov@virtuozzo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=mKbh=OL=nongnu.org=qemu-devel-bounces+qemu-devel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35531C433F5 for <qemu-devel@archiver.kernel.org>; Tue, 21 Sep 2021 10:38:22 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B9DE360FE8 for <qemu-devel@archiver.kernel.org>; Tue, 21 Sep 2021 10:38:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B9DE360FE8 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:42388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org>) id 1mSdAI-0007ml-VY for qemu-devel@archiver.kernel.org; Tue, 21 Sep 2021 06:38:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <vsementsov@virtuozzo.com>) id 1mSctY-0001Y7-1L; Tue, 21 Sep 2021 06:21:00 -0400 Received: from mail-eopbgr150090.outbound.protection.outlook.com ([40.107.15.90]:45198 helo=EUR01-DB5-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <vsementsov@virtuozzo.com>) id 1mSctV-0002Rp-RJ; Tue, 21 Sep 2021 06:20:59 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U4w1OZKMrpXCmk0QXUaptm9mx7OaEjmZBlcBmMHNI/LNFV3140Z3sDW1tNbzRLT9q6c/HUGZWiDtTYHrGgrss1pF6UOA27leTVLYoMWNU5x19A/xjGX3X7Lmxkl7W0YPlnoyYkkxA6FdILxKBdqSlM7eG/kxUoJ6YsH45b/dB0xNrEMsF70miY3BJAqJ54h0aCip5kiUdluaRlpBlg0qUekGe/q6gGdUbVMceWPC9k7LtgjhAlU2Ub2MGlqmA6D6VkSEAtNnSitT82O6XnqFBdsvxfQuZ5+TjVnxaldZ+ulketu7glEheHFSSJVM9inHaLa4uniK5d2NhNnUpc2jEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=yMlHwE4hBTnh9KPOMXc/DRBB9UYTvR7FJguw5SZSMto=; b=PpDolLY/iWS1oXXgzdBs/up9Rp5jXErh/feO83kq4DpsAxmXFFs5w0kTjHTWE0fOCvJQFKA07ZbKyhEMOYtW6fX5OhpR3jHZth7V6J3AEirqRVPz3kRAUNQ/XRiD3qPV10lign9VlKsl5zwhhbLEZV85lnb9xxReyoEXCcKrwbSmB/r9upfX7iS6apCO/IBJ5GiKtorf56GHWmxoSe8sA5y+nCu09wCzOaRCfFdnFG8F4J4sp9tXGToPG4PcvbMCaMnsfnbbuyJYSf2clN4m33mnyABNGYFfXyWKY6bgWKsYqA00uc4+4WicQB4XCkUZvdxg+07ldGvXS/mAZI0IDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yMlHwE4hBTnh9KPOMXc/DRBB9UYTvR7FJguw5SZSMto=; b=Pz2hIwL09Zy13/sKSykJ1PLNk0XK8/YDC4W42domrEsExxxvmFdLTIoLtnez4+tMeaF8JqzZQZdqiFFJGWb7FJBkTfj6NmRxEKnpKDIHW3TQSxYQagsr6ST3zoQRR399QucOQCQQy2QLmtU2Bv4fa05Zf/pwdVPfdWVLMN6Kwhk= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AS8PR08MB5944.eurprd08.prod.outlook.com (2603:10a6:20b:297::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Tue, 21 Sep 2021 10:20:43 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::2817:53b3:f8b4:fe22]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::2817:53b3:f8b4:fe22%9]) with mapi id 15.20.4544.013; Tue, 21 Sep 2021 10:20:43 +0000 From: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, peter.maydell@linaro.org, kwolf@redhat.com, hreitz@redhat.com, vsementsov@virtuozzo.com, jsnow@redhat.com, Eric Blake <eblake@redhat.com> Subject: [PULL 08/12] mirror: Use job_is_cancelled() Date: Tue, 21 Sep 2021 13:20:13 +0300 Message-Id: <20210921102017.273679-9-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210921102017.273679-1-vsementsov@virtuozzo.com> References: <20210921102017.273679-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HE1PR06CA0127.eurprd06.prod.outlook.com (2603:10a6:7:16::14) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 Received: from localhost.localdomain (185.215.60.205) by HE1PR06CA0127.eurprd06.prod.outlook.com (2603:10a6:7:16::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.16 via Frontend Transport; Tue, 21 Sep 2021 10:20:42 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 55a384b5-63c2-4c2f-d1ec-08d97ce977ef X-MS-TrafficTypeDiagnostic: AS8PR08MB5944: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <AS8PR08MB5944353F4B176ED354FE12A3C1A19@AS8PR08MB5944.eurprd08.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:862; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: F6lJy4nF2WjfsihAERS5YEefMrjdx5nQhMbJcf0UHz71TLO36uWIXIY+9HRNp0ZjcqC9p+jI4KlCaZ2SWN+GZUrBx+49eWCkRJ3yqaMXhpDf11m6iCQWyMoS7bgMxd8qJI3CS+HNGS+fe+qipKQDvXBO6w4Na+wI+V8oMohOkcZIwT7w/c6V5AcbJM80HeA/cQyxUWrs0Z6qwDrDDvzlNb4xvP1nJWuFTHeotE2asaKlp5Ghfvh6pPE5L2WZCqwEYwgLskd6gBi3gB3VAZJu9ud/wmM5zUjd4N2C3IrMbSrCGKAyZ9k7mQG+fP37GT4w/Q3VEgXpKJ3eLHizMi1ZURSPUEkoBGlMNXgk2tzKdc4V/WP/uK4OaATN/vtZgcEQ0UDNJey88O81I2bEHnT9H0UF69szYoI9g8REKCIWkvVwe/lS5QhStzy0nybPsRqTLChmz8xezX1sEuP+OTHxWcZ/5/a3l0HACl6M/5SkRFauKp3QLLqeQyZS4U6FYJtO6f6m6je3w/YBeUx9yQ4ART5QY0RM8ILsEAPqCMGHQVxHh5MJ1rsTwOYg6/ObFOpcsmmhX42roB9a6w0tLZgZnIpk/tkKDmA8nuwIr7dHD0Xda4YdA0Ua4G4s+cC0DSHTOzgOgb3KzVfwfAn9y5yINhB0ESardRYYaJemeofbZRSmVGn7AXOkU/DI0qFXN4jzZ3r+1zA7FdZaDO/dNp+Zvg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(8676002)(6512007)(83380400001)(86362001)(1076003)(8936002)(6916009)(186003)(38350700002)(316002)(52116002)(508600001)(66476007)(6666004)(66556008)(6506007)(2906002)(26005)(36756003)(66946007)(4326008)(6486002)(2616005)(956004)(38100700002)(5660300002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: UeZ+uZGfCQbhDOOh9N5yzATGLanX9sk2u7xhHnKgxXjj6NNose2lHc24A4TFQ37kJg0SkTeeN4ikdYmi2BFho4XOo8zRkQlfVG5HJLKqAqB2KV92Z7n73bhxJfr8Xl69sJC9lolkgUHAIE5SxEuPMFONkTb9XvlO9B1BiCJ1tAWvCHWHFpUePHQ+p6aNfDmylexvBY0HflcwZQJ8EmEuJ9uV1fv4PyeSSpcUS8HTjE1ngrx+ahwNKPZ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jm7ki2u9+m30bz7rJjbqcC X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55a384b5-63c2-4c2f-d1ec-08d97ce977ef X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2021 10:20:43.2499 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: B5fB5M7gtqehd9FaICgbPfuTsJXDLJv0RaSH+Fsw6zB5q2LPNNgb77rQZDZISkbRBuuyUbffh4YK6o/XSc5WDlgnunOe/qtlsIg7fZziD/g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB5944 Received-SPF: pass client-ip=40.107.15.90; envelope-from=vsementsov@virtuozzo.com; helo=EUR01-DB5-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 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: <https://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> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> |
Series |
[PULL,01/12] job: Context changes in job_completed_txn_abort()
|
expand
|
diff --git a/block/mirror.c b/block/mirror.c index 6c3d8379f8..cfebe50845 100644 --- a/block/mirror.c +++ b/block/mirror.c @@ -1184,7 +1184,7 @@ static bool mirror_drained_poll(BlockJob *job) * from one of our own drain sections, to avoid a deadlock waiting for * ourselves. */ - if (!s->common.job.paused && !s->common.job.cancelled && !s->in_drain) { + if (!s->common.job.paused && !job_is_cancelled(&job->job) && !s->in_drain) { return true; }