Received: from eggs.gnu.org ([2001:4830:134:3::10]:41855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYruo-0000If-EK for qemu-devel@nongnu.org; Fri, 20 Mar 2015 04:04:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYrun-0002kA-GW for qemu-devel@nongnu.org; Fri, 20 Mar 2015 04:04:22 -0400 From: Markus Armbruster References: <1425413591-31413-1-git-send-email-mreitz@redhat.com> <1425413591-31413-11-git-send-email-mreitz@redhat.com> <550B2117.3060902@redhat.com> Date: Fri, 20 Mar 2015 09:04:12 +0100 In-Reply-To: <550B2117.3060902@redhat.com> (Eric Blake's message of "Thu, 19 Mar 2015 13:18:47 -0600") Message-ID: <87a8z8hz7n.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v5 10/13] blockdev: Keep track of monitor-owned BDS List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Kevin Wolf , Fam Zheng , qemu-block@nongnu.org, qemu-devel@nongnu.org, Max Reitz , Stefan Hajnoczi , Paolo Bonzini Eric Blake writes: > On 03/03/2015 01:13 PM, Max Reitz wrote: >> Signed-off-by: Max Reitz >> --- >> block.c | 2 ++ >> blockdev.c | 18 ++++++++++++++++++ >> include/block/block_int.h | 4 ++++ >> stubs/Makefile.objs | 1 + >> stubs/blockdev-close-all-bdrv-states.c | 5 +++++ >> 5 files changed, 30 insertions(+) >> create mode 100644 stubs/blockdev-close-all-bdrv-states.c > > Again, might be nice for the commit message to document why adding this > is useful, but doesn't affect the code. > > Reviewed-by: Eric Blake Might be nice? This absolutely needs an explanation, in the code! Why do we need a separate list of "monitor-owned BDS"? What makes a BDS "monitor-owned"? What are the invariants governing relations among bdrv_states, graph_bdrv_states (what a horrible name) and blk_backends?