From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcDjE-0001bA-On for qemu-devel@nongnu.org; Mon, 31 Jul 2017 12:39:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcDjD-00019I-Ts for qemu-devel@nongnu.org; Mon, 31 Jul 2017 12:39:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38010) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcDjD-00018s-Ns for qemu-devel@nongnu.org; Mon, 31 Jul 2017 12:39:35 -0400 Date: Mon, 31 Jul 2017 17:39:29 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20170731163928.GC2122@work-vm> References: <1501229198-30588-1-git-send-email-peterx@redhat.com> <1501229198-30588-3-git-send-email-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1501229198-30588-3-git-send-email-peterx@redhat.com> Subject: Re: [Qemu-devel] [RFC 02/29] migration: fix comment disorder in RAMState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu Cc: qemu-devel@nongnu.org, Laurent Vivier , Alexey Perevalov , Juan Quintela , Andrea Arcangeli * Peter Xu (peterx@redhat.com) wrote: > Comments for "migration_dirty_pages" and "bitmap_mutex" are switched. > Fix it. > > Signed-off-by: Peter Xu Split this out, it can go in a trivial patch probably sooner. Reviewed-by: Dr. David Alan Gilbert > --- > migration/ram.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/migration/ram.c b/migration/ram.c > index c93973c..c12358d 100644 > --- a/migration/ram.c > +++ b/migration/ram.c > @@ -222,9 +222,9 @@ struct RAMState { > uint64_t iterations_prev; > /* Iterations since start */ > uint64_t iterations; > - /* protects modification of the bitmap */ > - uint64_t migration_dirty_pages; > /* number of dirty bits in the bitmap */ > + uint64_t migration_dirty_pages; > + /* protects modification of the bitmap */ > QemuMutex bitmap_mutex; > /* The RAMBlock used in the last src_page_requests */ > RAMBlock *last_req_rb; > -- > 2.7.4 > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK