Received: from eggs.gnu.org ([2001:4830:134:3::10]:46192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsllK-0008B9-JH for qemu-devel@nongnu.org; Thu, 14 May 2015 01:32:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsllH-0006LK-DT for qemu-devel@nongnu.org; Thu, 14 May 2015 01:32:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsllH-0006JK-6x for qemu-devel@nongnu.org; Thu, 14 May 2015 01:32:47 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4E5WjlH001649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 14 May 2015 01:32:45 -0400 Received: from localhost (dhcp-14-155.nay.redhat.com [10.66.14.155]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4E5WhbK032048 for ; Thu, 14 May 2015 01:32:44 -0400 Date: Thu, 14 May 2015 13:32:43 +0800 From: Fam Zheng Message-ID: <20150514053243.GB11231@ad.nay.redhat.com> References: <1431538099-3286-1-git-send-email-famz@redhat.com> <1431538099-3286-3-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1431538099-3286-3-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 02/11] block: Add op blocker notifier list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, 05/13 17:28, Fam Zheng wrote: > +static void bdrv_op_blocker_notify(BlockDriverState *bs, BlockOpType op, > + Error *reason, bool blocking) > +{ > + BlockOpEvent event = (BlockOpEvent) { > + op = op, > + reason = reason, > + blocking = true, s/true/blocking/ > + }; > + > + notifier_list_notify(&bs->op_blocker_notifiers, &event); > +} > +