Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 483E7C4167B for ; Fri, 2 Dec 2022 07:13:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231367AbiLBHN1 (ORCPT ); Fri, 2 Dec 2022 02:13:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbiLBHNZ (ORCPT ); Fri, 2 Dec 2022 02:13:25 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63FDF60B50; Thu, 1 Dec 2022 23:13:23 -0800 (PST) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 806591FDB2; Fri, 2 Dec 2022 07:13:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1669965201; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p8xc9/NvQfEQJ4e4z6/baVfh/lD5CFR3fcc+Q0PHSQI=; b=ybjOTPvRHpXwAhn3vINNm69twJGz58PGyPK1sd3JJZbdDiPz2XdYP0ZhZwebDY3UWbwKVN wDbUB5l15WW/8w+/RXjEQ/x1eSgM/aHnw1oZfWYT+5bACHpQI3sPlbXhA4JfNpeIOUAKNi wP2uRuN6cIXW9o6qJboZbFKuFHljxrc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1669965201; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p8xc9/NvQfEQJ4e4z6/baVfh/lD5CFR3fcc+Q0PHSQI=; b=pNHg4CJKoV+kTyzOXNJhCE1t7cDzJtp0kSAmdAcNEpT9EoHNSazpnSisumGDH/FUhyIQ0d rahTJqu09ovnd6Ag== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id F18E013644; Fri, 2 Dec 2022 07:13:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id D8OZOZCliWPifwAAGKfGzw (envelope-from ); Fri, 02 Dec 2022 07:13:20 +0000 Message-ID: Date: Fri, 2 Dec 2022 08:13:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 0/6] block: add support for REQ_OP_VERIFY Content-Language: en-US To: Chaitanya Kulkarni , Matthew Wilcox Cc: "linux-block@vger.kernel.org" , "linux-raid@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "linux-fsdevel@vger.kernel.org" , "axboe@kernel.dk" , "djwong@kernel.org" , "kbusch@kernel.org" , "hch@lst.de" , "sagi@grimberg.me" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "javier@javigon.com" , "johannes.thumshirn@wdc.com" , "bvanassche@acm.org" , "dongli.zhang@oracle.com" , "jefflexu@linux.alibaba.com" , "josef@toxicpanda.com" , "clm@fb.com" , "dsterba@suse.com" , "jack@suse.com" , "tytso@mit.edu" , "adilger.kernel@dilger.ca" , "jlayton@kernel.org" , "idryomov@gmail.com" , "danil.kipnis@cloud.ionos.com" , "ebiggers@google.com" , "jinpu.wang@cloud.ionos.com" References: <20220630091406.19624-1-kch@nvidia.com> From: Hannes Reinecke In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On 12/1/22 19:12, Chaitanya Kulkarni wrote: > On 7/6/22 10:42, Matthew Wilcox wrote: >> On Thu, Jun 30, 2022 at 02:14:00AM -0700, Chaitanya Kulkarni wrote: >>> This adds support for the REQ_OP_VERIFY. In this version we add >> >> IMO, VERIFY is a useless command. The history of storage is full of >> devices which simply lie. Since there's no way for the host to check if >> the device did any work, cheap devices may simply implement it as a NOOP. > > In past few months at various storage conferences I've talked to > different people to address your comment where device being > a liar verify implementation or even implementing NOOP. > > With all do respect this is not true. > [ .. ] Be careful to not fall into the copy-offload trap. The arguments given do pretty much mirror the discussion we had during designing and implementing copy offload. Turns out that the major benefit for any of these 'advanced' commands is not so much functionality but rather performance. If the functionality provided by the command is _slower_ as when the host would be doing is manually there hardly is a point even calling that functionality; we've learned that the hard way with copy offload, and I guess the same it true for 'verify'. Thing is, none of the command will _tell_ you how long that command will take; you just have to issue it and wait for it to complete. (Remember TRIM? And device which took minutes to complete it?) For copy offload we only recently added a bit telling the application whether it's worth calling it, or if we should rather do it the old fashioned way. But all of the above discussion has nothing to do with the implementation. Why should we disallow an implementation for a functionality which is present in hardware? How could we figure out the actual usability if we don't test? Where is the innovation? We need room for experimenting; if it turns out to be useless we can always disable or remove it later. But we shouldn't bar implementations because hardware _might_ be faulty. I do see at least two topics for the next LSF: - Implementation of REQ_OP_VERIFY - Innovation rules for the kernel ... Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman