Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D65DC4CECE for ; Mon, 14 Oct 2019 11:16:21 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 37F8020663 for ; Mon, 14 Oct 2019 11:16:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=igalia.com header.i=@igalia.com header.b="ScGreFsG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 37F8020663 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=igalia.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:47554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJyKp-0000aq-EP for qemu-devel@archiver.kernel.org; Mon, 14 Oct 2019 07:16:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47623) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iJyIX-00079i-2w for qemu-devel@nongnu.org; Mon, 14 Oct 2019 07:13:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iJyIU-0006ZK-JR for qemu-devel@nongnu.org; Mon, 14 Oct 2019 07:13:56 -0400 Received: from 6.130.60.178.static.reverse-mundo-r.com ([178.60.130.6]:51929 helo=fanzine.igalia.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iJyIR-0006Oi-Uv; Mon, 14 Oct 2019 07:13:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=YkLdicxX46ih5g/ufOe1Xk38geLi4YEmvcP2hYp14MY=; b=ScGreFsGRCXUMA/+qKeRR+T3d6MBVu1SbaIYLfpITuuyVTWUkobXuWOLjEKmrKnzTIEGz71GBYrd99p1cdA5xDmiuBX+kYMNzSH6Pn7vWCy9OzVR7pAH7cpUUDc/SPfyenqJ0rw6xuTGPKRRHtMU/Q6DoktpSNeMoPnXotP/s1Di5tEiiEs8pyGYlmzE8LZgCclJKmYhZJhqZgr8svDUbgW25OZU6m4AX4gQIC5xUfgEHdgMD2ox0HsosDXtkkc9B6OUgXmQ0D8q230ehE2vxygddevLzToPeyWo0XnKLZ5GDckYjg79C6mZRJJqF0HuQQ1SQFpn+1WL+/5yOEfODw==; Received: from maestria.local.igalia.com ([192.168.10.14] helo=mail.igalia.com) by fanzine.igalia.com with esmtps (Cipher TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim) id 1iJyIK-0004K4-KY; Mon, 14 Oct 2019 13:13:44 +0200 Received: from berto by mail.igalia.com with local (Exim) id 1iJyIK-0005Kn-Hg; Mon, 14 Oct 2019 13:13:44 +0200 From: Alberto Garcia To: Vladimir Sementsov-Ogievskiy , "qemu-devel\@nongnu.org" Subject: Re: [PATCH] block: Reject misaligned write requests with BDRV_REQ_NO_FALLBACK In-Reply-To: <6bbe4db2-a4fd-ee2b-1b79-879658b81753@virtuozzo.com> References: <20191013204853.1046-1-berto@igalia.com> <6bbe4db2-a4fd-ee2b-1b79-879658b81753@virtuozzo.com> User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) Date: Mon, 14 Oct 2019 13:13:44 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 178.60.130.6 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Anton Nefedov , "qemu-block@nongnu.org" , Max Reitz Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Mon 14 Oct 2019 12:11:52 PM CEST, Vladimir Sementsov-Ogievskiy wrote: > 13.10.2019 23:48, Alberto Garcia wrote: >> The BDRV_REQ_NO_FALLBACK flag means that an operation should only be >> performed if it can be offloaded or otherwise performed efficiently. > > As I know, BDRV_REQ_NO_FALLBACK is for write-zeros only, not about > offloading.. I just used the same wording from the documentation in block.h: /* Execute the request only if the operation can be offloaded or otherwise * be executed efficiently, but return an error instead of using a slow * fallback. */ Berto