From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id 1B6784207D4 for ; Wed, 9 Feb 2022 15:04:51 +0100 (CET) Date: Wed, 9 Feb 2022 15:04:48 +0100 From: Christoph Hellwig To: Jinpu Wang Message-ID: <20220209140448.GA20765@lst.de> References: <20220209082828.2629273-1-hch@lst.de> <20220209082828.2629273-4-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: axboe@kernel.dk, manoj@linux.ibm.com, linux-scsi@vger.kernel.org, martin.petersen@oracle.com, philipp.reisner@linbit.com, linux-block@vger.kernel.org, dm-devel@redhat.com, target-devel@vger.kernel.org, haris.iqbal@ionos.com, ukrishn@linux.ibm.com, lars.ellenberg@linbit.com, drbd-dev@lists.linbit.com, Christoph Hellwig , mrochs@linux.ibm.com Subject: Re: [Drbd-dev] [PATCH 3/7] rnbd: drop WRITE_SAME support List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Feb 09, 2022 at 11:16:13AM +0100, Jinpu Wang wrote: > Hi Christoph, > > > On Wed, Feb 9, 2022 at 9:28 AM Christoph Hellwig wrote: > > > > REQ_OP_WRITE_SAME was only ever submitted by the legacy Linux zeroing > > code, which has switched to use REQ_OP_WRITE_ZEROES long before rnbd was > > even merged. > > Do you think if it makes sense to instead of removing > REQ_OP_WRITE_SAME, simply convert it to REQ_OP_WRITE_ZEROES? Well, they have different semantics, so you can't just "convert" it. But it might make sense to add REQ_OP_WRITE_ZEROES.