Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1530739ybb; Thu, 26 Mar 2020 02:30:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsur8rXXJkRlVp7D1y0/NxyUbketR3HdUlWsyb0Htvo2ynL1kg8iym4Q3HUDlYnm80RLHO2 X-Received: by 2002:a4a:9c41:: with SMTP id c1mr4524126ook.43.1585215048080; Thu, 26 Mar 2020 02:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585215048; cv=none; d=google.com; s=arc-20160816; b=EUXo8lYXGA/1rlJWrEStrnjdh1VggXwXtT76VKCFpnJ4UMEXJlo+9uCWafmNdC9tE0 Dkb2Ub+NHU0zmPUg+SNgSpBF/TeI4oO65bS0gqsnbPrTMo+F8dZG58qIHUX2lU0+thob asdYswUlYsFA8Fz6MMBEtrxZPSGJx5bCZVtI/MI76rjRkL+hFEO/66qNqjY478SHrVgI Y8n3j2gvTt8V8FKHMpdvFXqW/fP7IjJfnB8r+QU2lqKaQvbNnpAkDJhIyYKghmCHSJbA w9pppYe9YM/Q8XQt2LtZdxQ7kmbh54Vkm9WxHaBJv27ybiLHnAnvAU8/Aio9hfL7jSpH LDxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=dG5pPHs14OBzWSVcRXLG0d0hpdMtIjiZ05XYggJN7Nw=; b=riaNCQYgVsc8HKfkKOflfq4LBu69j2LGsJp2Y9RoO5VK5JmaEyZLbfBfg+u5pXwo68 y5J5LMgl+prcnjD1flYuM6g+zA0vTccS/PbeUyQa92JPsWtO7eKwvYVrHUTwL1UT3+ms 2EbBUjk47URMQH3Za8LjsM0vJpJmoKXaE5YbkSxDJGjuNq9Ap9CB0mqFEtspbAzJOJYh PQtdgrTXtZONFU1K+4h89U6LiakqZY64vVA5RUaIhE2Q1zy9E35eRpj53kwhHHBOq4W+ AY3K4+2dsGr+sPjUEJbmnAx0yHLsBmw2727W86e9yUvP+m8ulJHK11jdizlcq0RBpuLo Frwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=olbIXlgR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si858020otr.262.2020.03.26.02.30.35; Thu, 26 Mar 2020 02:30:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=olbIXlgR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727865AbgCZJ36 (ORCPT + 99 others); Thu, 26 Mar 2020 05:29:58 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39720 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbgCZJ36 (ORCPT ); Thu, 26 Mar 2020 05:29:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=dG5pPHs14OBzWSVcRXLG0d0hpdMtIjiZ05XYggJN7Nw=; b=olbIXlgRMRYIuRBimP12omMlMf qniCU91DEn3QcBZif8E9ZHHXEHuxyEImoFcq421j3RYxfsEGB4HIt4ACQMQ4A52je9dlbLNu+l9R2 DCZGhCnkyzbZKJdgbvSkRV5SR3Z76Zm71qw/x2GRBhrZ5B+iV4mAktYlQmLh6fbv+zN2SDyeJyiAr TMy9g1dH4+NmPyjVbAg/uKUnOvvBCDTSvrPPPmCgESua3nLpqouFCD4kGGDuSYC+U3fPKzTxmbCvM c6TPM73XIQ/CTiAQ0ucsBmDkG6gRa81JKCjhoMNeOHD3XAEpMwKBj4ZiWY77jkfq4kZk/3kctdhWI liblYJtA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHOpT-0001iz-SO; Thu, 26 Mar 2020 09:29:35 +0000 Date: Thu, 26 Mar 2020 02:29:35 -0700 From: Christoph Hellwig To: "Martin K. Petersen" Cc: Christoph Hellwig , "Darrick J. Wong" , Kirill Tkhai , axboe@kernel.dk, bob.liu@oracle.com, agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, song@kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, Chaitanya.Kulkarni@wdc.com, ming.lei@redhat.com, osandov@fb.com, jthumshirn@suse.de, minwoo.im.dev@gmail.com, damien.lemoal@wdc.com, andrea.parri@amarulasolutions.com, hare@suse.com, tj@kernel.org, ajay.joshi@wdc.com, sagi@grimberg.me, dsterba@suse.com, bvanassche@acm.org, dhowells@redhat.com, asml.silence@gmail.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 0/6] block: Introduce REQ_ALLOCATE flag for REQ_OP_WRITE_ZEROES Message-ID: <20200326092935.GA6478@infradead.org> References: <158157930219.111879.12072477040351921368.stgit@localhost.localdomain> <69c0b8a4-656f-98c4-eb55-2fd1184f5fc9@virtuozzo.com> <67d63190-c16f-cd26-6b67-641c8943dc3d@virtuozzo.com> <20200319102819.GA26418@infradead.org> <20200325162656.GJ29351@magnolia> <20200325163223.GA27156@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 25, 2020 at 01:23:33PM -0400, Martin K. Petersen wrote: > > Christoph, > > > I am very much against that for the following reason: > > > > - the current REQ_OP_DISCARD is purely a hint, and implementations can > > (and do) choose to ignore it > > > > - REQ_OP_WRITE_ZEROES is an actual data integrity operation with > > everything that entails > > If you want to keep emphasis on the "integrity operation" instead of the > provisioning aspect, would you expect REQ_ALLOCATE (which may or may not > zero blocks) to be considered a deterministic operation or a > non-deterministic one? Should this depend on whether the device > guarantees zeroing when provisioning blocks or not? That's why I don't like the whole flags game very much. I'd rather have REQ_OP_WRITE_ZEROES as the integrity operation that gurantees zeroing, and a REQ_ALLOCATE that doesn't guarantee zeroing, just some deterministic state of the blocks.