Received: from eggs.gnu.org ([2001:4830:134:3::10]:59737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn6Rq-0008Bq-Ha for qemu-devel@nongnu.org; Wed, 21 May 2014 09:20:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wn6Rk-0004nB-Cb for qemu-devel@nongnu.org; Wed, 21 May 2014 09:20:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49326) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wn6Rk-0004mt-39 for qemu-devel@nongnu.org; Wed, 21 May 2014 09:20:40 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4LDKdTh003321 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 21 May 2014 09:20:39 -0400 Date: Wed, 21 May 2014 15:20:21 +0200 From: Stefan Hajnoczi Message-ID: <20140521132021.GE6619@stefanha-thinkpad.redhat.com> References: <1400565880-13409-1-git-send-email-famz@redhat.com> <1400565880-13409-5-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1400565880-13409-5-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v20 04/15] block: Move op_blocker check from block_job_create to its caller List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, armbru@redhat.com, jcody@redhat.com, hbrock@redhat.com, qemu-devel@nongnu.org, rjones@redhat.com, imain@redhat.com, pbonzini@redhat.com On Tue, May 20, 2014 at 02:04:29PM +0800, Fam Zheng wrote: > It makes no sense to check for "any" blocker on bs, we are here only > because of the mechanical conversion from in_use to op_blockers. Remove > it now, and let the callers check specific operation types. Backup and > mirror already have it, add checker to stream and commit. > > Signed-off-by: Fam Zheng > Reviewed-by: Benoit Canet > Reviewed-by: Jeff Cody > --- > blockdev.c | 8 ++++++++ > blockjob.c | 2 +- > 2 files changed, 9 insertions(+), 1 deletion(-) Reviewed-by: Stefan Hajnoczi