From patchwork Wed May 20 15:35:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 474540 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1946F140281 for ; Thu, 21 May 2015 01:49:47 +1000 (AEST) Received: from localhost ([::1]:52900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv6Fd-0002s1-BS for incoming@patchwork.ozlabs.org; Wed, 20 May 2015 11:49:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv6FD-0002Be-IG for qemu-devel@nongnu.org; Wed, 20 May 2015 11:49:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yv6FC-0008W4-K5 for qemu-devel@nongnu.org; Wed, 20 May 2015 11:49:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yv6FC-0008Ve-DA for qemu-devel@nongnu.org; Wed, 20 May 2015 11:49:18 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4KFnGWA022214 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 20 May 2015 11:49:17 -0400 Received: from trasno.mitica (ovpn-116-30.ams2.redhat.com [10.36.116.30]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4KFZPsx031946; Wed, 20 May 2015 11:35:27 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 20 May 2015 17:35:22 +0200 Message-Id: <1432136124-24572-2-git-send-email-quintela@redhat.com> In-Reply-To: <1432136124-24572-1-git-send-email-quintela@redhat.com> References: <1432136124-24572-1-git-send-email-quintela@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: amit.shah@redhat.com, jdenemar@redhat.com Subject: [Qemu-devel] [PATCH 1/3] migration: Remove duplicated assignement of SETUP status X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org We assign the MIGRATION_STATUS_SETUP status in two places. Just in sucession. Just remove the second one. Signed-off-by: Juan Quintela Reviewed-by: Eric Blake --- migration/migration.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index 1035689..2925587 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -849,9 +849,6 @@ static void *migration_thread(void *opaque) void migrate_fd_connect(MigrationState *s) { - s->state = MIGRATION_STATUS_SETUP; - trace_migrate_set_state(MIGRATION_STATUS_SETUP); - /* This is a best 1st approximation. ns to ms */ s->expected_downtime = max_downtime/1000000; s->cleanup_bh = qemu_bh_new(migrate_fd_cleanup, s);