Received: from eggs.gnu.org ([209.51.188.92]:48847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ggWgt-0002Ic-Qy for qemu-devel@nongnu.org; Mon, 07 Jan 2019 10:19:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ggWgs-0008SM-GW for qemu-devel@nongnu.org; Mon, 07 Jan 2019 10:19:47 -0500 From: Alberto Garcia In-Reply-To: <20181218075707.12006-6-anton.nefedov@virtuozzo.com> References: <20181218075707.12006-1-anton.nefedov@virtuozzo.com> <20181218075707.12006-6-anton.nefedov@virtuozzo.com> Date: Mon, 07 Jan 2019 16:19:43 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v11 05/10] block: treat BDRV_REQ_ALLOCATE as serialising List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anton Nefedov , "qemu-devel@nongnu.org" Cc: "qemu-block@nongnu.org" , "kwolf@redhat.com" , "mreitz@redhat.com" , "eblake@redhat.com" , Denis Lunev , Vladimir Sementsov-Ogievskiy On Tue 18 Dec 2018 08:57:38 AM CET, Anton Nefedov wrote: > The idea is that ALLOCATE requests may overlap with other requests. > Reuse the existing block layer infrastructure for serialising requests. > Use the following approach: > - mark ALLOCATE also SERIALISING, so subsequent requests to the area wait > - ALLOCATE request itself must never wait if another request is in flight > already. Return EAGAIN, let the caller reconsider. > > Signed-off-by: Anton Nefedov Reviewed-by: Alberto Garcia Berto