Received: from eggs.gnu.org ([2001:4830:134:3::10]:33601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5X2t-0005Uy-7v for qemu-devel@nongnu.org; Wed, 25 May 2016 07:32:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5X2r-0002Ma-ER for qemu-devel@nongnu.org; Wed, 25 May 2016 07:32:14 -0400 From: Alberto Garcia In-Reply-To: <1464097654-12977-4-git-send-email-kwolf@redhat.com> References: <1464097654-12977-1-git-send-email-kwolf@redhat.com> <1464097654-12977-4-git-send-email-kwolf@redhat.com> Date: Wed, 25 May 2016 13:32:05 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 03/14] block: Default to enabled write cache in blk_new() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: mreitz@redhat.com, jcody@redhat.com, jsnow@redhat.com, qemu-devel@nongnu.org On Tue 24 May 2016 03:47:23 PM CEST, Kevin Wolf wrote: > The existing users of the function are: > > 1. blk_new_open(), which already enabled the write cache > 2. Some test cases that don't care about the setting > 3. blockdev_init() for empty drives, where the cache mode is overridden > with the value from the options when a medium is inserted > > Therefore, this patch doesn't change the current behaviour. It will be > convenient, however, for additional users of blk_new() (like block > jobs) if the most sensible WCE setting is the default. > > Signed-off-by: Kevin Wolf > Reviewed-by: Max Reitz Reviewed-by: Alberto Garcia Berto