From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Whv21-0002Uy-RX for qemu-devel@nongnu.org; Wed, 07 May 2014 02:08:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Whv1v-0004iI-NL for qemu-devel@nongnu.org; Wed, 07 May 2014 02:08:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Whv1v-0004iC-FG for qemu-devel@nongnu.org; Wed, 07 May 2014 02:08:35 -0400 From: Markus Armbruster References: <1399030002-27222-1-git-send-email-armbru@redhat.com> <1399030002-27222-15-git-send-email-armbru@redhat.com> <536390CD.8070106@redhat.com> Date: Wed, 07 May 2014 08:08:30 +0200 In-Reply-To: <536390CD.8070106@redhat.com> (Eric Blake's message of "Fri, 02 May 2014 06:34:21 -0600") Message-ID: <87fvkmi0ip.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3 14/14] qmp: Don't use error_is_set() to suppress additional errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: pbonzini@redhat.com, lcapitulino@redhat.com, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com Eric Blake writes: > On 05/02/2014 05:26 AM, Markus Armbruster wrote: >> Using error_is_set(errp) that way can sweep programming errors under >> the carpet when we get called incorrectly with an error set. >> >> encrypted_bdrv_it() does it, because there's no way to make >> bdrv_iterate() break its loop. Actually safe, because qmp_cont() >> clears the error before the loop. Clean it up anyway: replace >> bdrv_iterate() by bdrv_next(), break the loop on error. >> >> Replace both occurences, for consistency. > > s/occurences/occurrences/ > >> >> Signed-off-by: Markus Armbruster >> Reviewed-by: Eric Blake > > Fixing up the commit message typo is trivial and doesn't alter the > positive review. Luiz, could you fix it up on commit, when you add Eric's R-by?