From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEKiU-0001ku-Nh for qemu-devel@nongnu.org; Fri, 14 Feb 2014 10:30:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEKiQ-0007YO-1V for qemu-devel@nongnu.org; Fri, 14 Feb 2014 10:30:14 -0500 Received: from mail-wg0-x22e.google.com ([2a00:1450:400c:c00::22e]:57561) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEKiP-0007YI-RI for qemu-devel@nongnu.org; Fri, 14 Feb 2014 10:30:09 -0500 Received: by mail-wg0-f46.google.com with SMTP id x13so492523wgg.1 for ; Fri, 14 Feb 2014 07:30:08 -0800 (PST) Date: Fri, 14 Feb 2014 16:30:05 +0100 From: Stefan Hajnoczi Message-ID: <20140214153005.GU17391@stefanha-thinkpad.redhat.com> References: <1392308553-9886-1-git-send-email-benoit.canet@irqsave.net> <1392308553-9886-2-git-send-email-benoit.canet@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1392308553-9886-2-git-send-email-benoit.canet@irqsave.net> Subject: Re: [Qemu-devel] [PATCH] blockdev: Fix wrong usage of QDECREF causing snapshoted quorum to crash on close. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: kwolf@redhat.com, qemu-devel@nongnu.org, Benoit Canet On Thu, Feb 13, 2014 at 05:22:33PM +0100, Benoît Canet wrote: > As bdrv_open() documentation states: > "The reference to the QDict belongs to the block layer > * after the call (even on failure), so if the caller intends to reuse the > * dictionary, it needs to use QINCREF() before calling bdrv_open." > > the optional options dict will not be reused after bdrv_open() and should > belong to the block layer so remove the extra QDECREF(options). > > Signed-off-by: Benoit Canet > --- > blockdev.c | 2 -- > 1 file changed, 2 deletions(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan