Received: from eggs.gnu.org ([208.118.235.92]:57424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUHBo-0006vp-OI for qemu-devel@nongnu.org; Mon, 22 Apr 2013 09:53:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUHBk-0006Lp-3Q for qemu-devel@nongnu.org; Mon, 22 Apr 2013 09:53:52 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:44301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUHBj-0006Lh-Tn for qemu-devel@nongnu.org; Mon, 22 Apr 2013 09:53:48 -0400 Received: by mail-wi0-f171.google.com with SMTP id l13so4429741wie.10 for ; Mon, 22 Apr 2013 06:53:47 -0700 (PDT) Date: Mon, 22 Apr 2013 15:53:43 +0200 From: Stefan Hajnoczi Message-ID: <20130422135343.GF21317@stefanha-thinkpad.redhat.com> References: <1366393639-20651-1-git-send-email-lcapitulino@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1366393639-20651-1-git-send-email-lcapitulino@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/2] block: fix spurious DEVICE_TRAY_MOVED events on shutdown List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: kwolf@redhat.com, phrdina@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com On Fri, Apr 19, 2013 at 01:47:17PM -0400, Luiz Capitulino wrote: > Hi, > > This fixes a regression introduced by commit 9ca111544, as detailed in > patch 2/2, by moving bdrv_dev_change_media_cb() calls to callers of > bdrv_close() that need it, as suggested by Kevin. > > Luiz Capitulino (2): > block: make bdrv_dev_change_media_cb() public > block: move bdrv_dev_change_media_cb() to callers that really need it > > block.c | 5 +---- > blockdev.c | 2 ++ > include/block/block.h | 1 + > 3 files changed, 4 insertions(+), 4 deletions(-) Looks okay but I'll wait for Markus or Kevin to review too. The media change code is subtle, we've had a long history of fixes :). Stefan