Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1488736rdb; Wed, 6 Dec 2023 23:47:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IErVB+ccrJUv15Zap4AfFZi+rWjnauj+RKvn3/RrS0RBARUt6DtUB3vJMxxIBkd8TGIQNXe X-Received: by 2002:a9d:6a8f:0:b0:6d9:afd0:6af8 with SMTP id l15-20020a9d6a8f000000b006d9afd06af8mr2361383otq.68.1701935260655; Wed, 06 Dec 2023 23:47:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701935260; cv=none; d=google.com; s=arc-20160816; b=z2+2OKgatN1ng01JHDoO7YFCHGRJFFZ1LurdSgDikoVnfRGUeYDG0MAMYzsumZ9fnu xUdMUzt3gKVr/7r+Q1QvDzKgbCFQNgWHS7ATyoRHLii/2xGJ/FDJgg08BUIeaJn8ZWjX UBV/qG3c8jf1LNuyhRyUTT576ArO+kLwlA0t6LI7H8b54GzM06t03ML6jOwAJaTDakOz hJstoh/1couqGfDrf3C7CYHEtkHAMBbDWhsn/qQ6TFzW+C5w9wMJrXANdWvjEj4kixL6 X8wCrWWjrBI0v2hcI/UowmqoNjzU2mN+85DTJYRtdgiRoMn/UphAzH4Smm74tSrxEkZH CeRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=z4F9mXba7tQFHVOT8cGkh5EdqUdPN0Rtt/hd54yhsuc=; fh=JJ6XuJws04ZTDoXMtogHpkKD8YDwoIWFzY7xNjodiaE=; b=u4FK747mMXIQJCS7lKcNS9bAVGG7gzAVmb4Xv2tq92f+DFmX8SNlJiznDIYJ58EiOk NTPGHmmabLFUN43lWl2yKLqsjzz2hpB966ca51s32eHd00YhxqWsuLVGfO0w8sm+vvY7 wOIWx6OZyfAzKf+6Pwip5rgqKMYVFPWCQblFxlkaEyf1+LIkaQ70JoRh4PnbJzktB25w MVy2556wJ1yzlOktRO4UUJ8tw/FvBPlV44L2F5eWwF5vXKja8VAbVQJ6I/uIIH0tsEw8 RVzNAkMuXr31bjYTd88j7laHJwF6UiW5H1aRhCfXv2hqUSXsQkPzs1Qrgx2sjHqYSBkw SCMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=krkfNWZA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id i28-20020a63541c000000b005c677224c92si718679pgb.522.2023.12.06.23.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 23:47:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=krkfNWZA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id F2EEB81FEC44; Wed, 6 Dec 2023 23:47:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378026AbjLGHrY (ORCPT + 99 others); Thu, 7 Dec 2023 02:47:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377955AbjLGHrX (ORCPT ); Thu, 7 Dec 2023 02:47:23 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9029710D; Wed, 6 Dec 2023 23:47:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=z4F9mXba7tQFHVOT8cGkh5EdqUdPN0Rtt/hd54yhsuc=; b=krkfNWZAhP3Hqm1os41tpMbqjm eV6+pyGL0O4Z3WWCx+pT06eUxdvu2j4tSXGOIfjTVkHs5SoNpWuNf0iyJAa8njFd0yQpoB2+DcDU6 B8+R+BtLKvZ0bP8QQKQvQxfxjtE9JFCkHjxZvbKEeJQskbCjv3smlKyuVpVsY/Eq+KoAjQsv6/IqX ozfzkKEoZZeCHQXuIi6DSUwFOZGSljne5pUYQEkTOdeL6HGorjcWKhjquxU2osE1MD8YfAoXuFvUC QAkHlYbdAmSVlIOOCngDIDJxRLUuEpSfeG9W3iFcY7liSWdDlU+ooO4FCYIo21oZh8cex0YuTEYF5 4vSHHScQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rB96H-00C7D3-2w; Thu, 07 Dec 2023 07:47:13 +0000 Date: Wed, 6 Dec 2023 23:47:13 -0800 From: Christoph Hellwig To: Sergei Shtepa Cc: axboe@kernel.dk, hch@infradead.org, corbet@lwn.net, snitzer@kernel.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, viro@zeniv.linux.org.uk, brauner@kernel.org, linux-block@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Sergei Shtepa Subject: Re: [PATCH v6 10/11] blksnap: Kconfig and Makefile Message-ID: References: <20231124165933.27580-1-sergei.shtepa@linux.dev> <20231124165933.27580-11-sergei.shtepa@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231124165933.27580-11-sergei.shtepa@linux.dev> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 06 Dec 2023 23:47:38 -0800 (PST) > +config BLKSNAP_DIFF_BLKDEV > + bool "Use an optimized algorithm to store difference on a block device" > + depends on BLKSNAP > + default y > + help > + The difference storage for a snapshot can be a regular file or a > + block device. We can work with a block device through the interface > + of a regular file. However, direct management of I/O units should > + allow for higher performance. Is there much of a point in making this option? Btw, Linus hates defaul y, so we should not have one in there. > +config BLKSNAP_CHUNK_DIFF_BIO_SYNC > + bool "Use a synchronous I/O unit processing algorithm for the snapshot image" > + depends on BLKSNAP > + default n n the default default, so no need to add it. But unless there is a really good reason to have two different bio submission mechanisms upstream I'd strongly suggest dropping one of them and this option.