Received: from eggs.gnu.org ([2001:4830:134:3::10]:43717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLlsn-0002oB-8d for qemu-devel@nongnu.org; Thu, 24 May 2018 04:46:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLlsk-0000Lt-5t for qemu-devel@nongnu.org; Thu, 24 May 2018 04:46:01 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:49852 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fLlsk-0000La-1u for qemu-devel@nongnu.org; Thu, 24 May 2018 04:45:58 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 85F17401EF03 for ; Thu, 24 May 2018 08:45:57 +0000 (UTC) Date: Thu, 24 May 2018 16:45:48 +0800 From: Peter Xu Message-ID: <20180524084548.GE12122@xz-mi> References: <20180524043952.11245-1-peterx@redhat.com> <20180524043952.11245-2-peterx@redhat.com> <877ent8nj3.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <877ent8nj3.fsf@dusky.pond.sub.org> Subject: Re: [Qemu-devel] [PATCH v7 1/4] monitor: rename out_lock to mon_lock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, "Dr . David Alan Gilbert" , Stefan Hajnoczi , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau On Thu, May 24, 2018 at 10:29:20AM +0200, Markus Armbruster wrote: > Peter Xu writes: > > > The out_lock is protecting a few Monitor fields. In the future the > > monitor code will start to run in multiple threads. We are going to > > turn it into a bigger lock to protect not only the out buffer but also > > all the rest. > > Hmm, not sure about "all the rest": PATCH 3 marks a member as not > needing protection. Shall I change this to "most of the rest" when I > apply? Of course. :) Please feel free to touch up the commit message where necessary (this rule applies to all my patches). I fully trust your wordings. Thanks! -- Peter Xu