Received: from eggs.gnu.org ([2001:4830:134:3::10]:41285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2nuD-00068V-U4 for qemu-devel@nongnu.org; Fri, 26 Jul 2013 15:42:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2nuD-0002tB-5R for qemu-devel@nongnu.org; Fri, 26 Jul 2013 15:42:25 -0400 Received: from mail.avalus.com ([2001:41c8:10:1dd::10]:49309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2nuC-0002sz-VK for qemu-devel@nongnu.org; Fri, 26 Jul 2013 15:42:25 -0400 Date: Fri, 26 Jul 2013 20:42:11 +0100 From: Alex Bligh Message-ID: In-Reply-To: <51F2CAF4.40103@redhat.com> References: <1374596968-20181-1-git-send-email-benoit@irqsave.net> <1374596968-20181-2-git-send-email-benoit@irqsave.net> <51F2CAF4.40103@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: [Qemu-devel] [PATCH V3 for-1.6 1/5] block: Repair the throttling code. Reply-To: Alex Bligh List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , =?UTF-8?Q?Beno=C3=AEt_Canet?= Cc: kwolf@redhat.com, Alex Bligh , qemu-devel@nongnu.org, stefanha@redhat.com --On 26 July 2013 13:16:04 -0600 Eric Blake wrote: >> - while (qemu_co_queue_next(&bs->throttled_reqs)); >> + while (qemu_co_enter_next(&bs->throttled_reqs)) { >> + } > > On first read, I missed the s/queue/enter/ change and thought all you > were doing was the s/;/{}/ change. Is the style change necessary to > keep checkpatch.pl happy? If not, then keeping the old style would draw > better attention to the bug fix. checkpatch.pl doesn't like: while (func()); It appears happy with: do {} while (func()); which is marginally less ugly than: while (func()) { }; in my opinion, particularly when used multiple times in succession. I think this is probably a bug in checkpatch.pl. -- Alex Bligh