Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp213109imw; Fri, 8 Jul 2022 01:18:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tv84zeoMMeVQ1D1aDcTbE4o6cccvb8MUTG6ThSB+843wg+O5rtf4XZfTg8XdwSay/Mktxy X-Received: by 2002:a17:90b:3841:b0:1ef:f0ac:de55 with SMTP id nl1-20020a17090b384100b001eff0acde55mr1350153pjb.35.1657268283504; Fri, 08 Jul 2022 01:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657268283; cv=none; d=google.com; s=arc-20160816; b=ZnJBlOlt4aVZPC0GV9IQibikPpDAxml8JLtv4jebLtj+TzYjEctABN+3Q3PkCLTHTy fzzJqxX4d+Y+lpPyRbw4CyHKe0jyluhNwHVZP3J7JG9NWE3nenDYTfIrkLjuM30U6cB/ KD/AU7yNLUKGIVJ0+t7lOHDgUSAlA0mGcORzGngxeba+aUSOlKhETxWtbcIoY6QOV0fB vWx0gtg5IaK/RY9d2Tt5a8Uw3Ddlbg5PEjk3cJ5Czu0bTHWOJ9UFU4Lz+k11LYVWVz26 MpA8WeYJ0OF1Dt/7dKmpmQ295ec/g6BWRXzxax2J20zxXZfOPgvKsDmBO1++shqG/2Ty 9WXg== 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=Rmp5G6vHPz8jBiOD5JA28ORVQFrjzvX/1JW4d9qp04s=; b=MWX4H0ERUxYDG5323u3Vfg5jaQMq0Ob2qdCLnGc8n44c2WVi4LjaUBSO6a09lM/eff 18s9lHgzwkAgU9904FSQV7SUK1KqsMdS1xs6yWEo6HkDX19GRRPibXdTVTnyIxtt9dn3 Il6U6vlKfodhuQ63YWuI3JRBR06HTnVRTa5t0HK+PknSXACOKSxbNZhEPYyrNyKWyT/s 12NvqbRTq66NGBLyp5+RNm2hBJIUkbgogl5OP9+5ABlrNr//i/KxulyCYMsIrBf/EGLn XQ1RGlL9PfXuIsIMbjoKsPa49FpjFMHvr8YtJXe0rb3SaE3VUFzNbnc6DdJblzDmH0Y2 Cv/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=LAlSn1iq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a056a00114c00b0050a7b4bf744si31454717pfm.128.2022.07.08.01.17.36; Fri, 08 Jul 2022 01:18:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=LAlSn1iq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237622AbiGHIEr (ORCPT + 99 others); Fri, 8 Jul 2022 04:04:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237530AbiGHIEq (ORCPT ); Fri, 8 Jul 2022 04:04:46 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2F988048A; Fri, 8 Jul 2022 01:04:45 -0700 (PDT) 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=Rmp5G6vHPz8jBiOD5JA28ORVQFrjzvX/1JW4d9qp04s=; b=LAlSn1iqreBWIix6My/aDS6Q/L HR4U2riupSczgF0sIB8Q8jo7HKYnDmfAo0lHO+kiuXXNdjsVmaKykHg/akDHYJaXQ1oUPjXbV//3T phwsavr1Ko39mwTfHhQ8a1ZBLs++x77pebkPj/qPsVSWz8wYEWV3+1nKbsJSnOfgLJOG9Fwqivf1e ALxw5RK7DfKDEKZj/vdx7SWT5pgyzF4qXxjtjTw12dK6OyPMRClSifdf5i5L1b9SSH36zvGT7I0sJ 56Urr9rBTo+UpLk8LmgltvF2qQt1SjdYcIvc2206PjLP47kpdTavNbal65G8081FrtnFAe5OTUmWx lWhIcBrw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9iyi-002MH3-AR; Fri, 08 Jul 2022 08:04:44 +0000 Date: Fri, 8 Jul 2022 01:04:44 -0700 From: Christoph Hellwig To: Sergei Shtepa Cc: Christoph Hellwig , "axboe@kernel.dk" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 15/20] block, blksnap: snapshot image block device Message-ID: References: <1655135593-1900-1-git-send-email-sergei.shtepa@veeam.com> <1655135593-1900-16-git-send-email-sergei.shtepa@veeam.com> <49039d2b-e4bc-62a1-7b4a-a78001a2f430@veeam.com> 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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 08, 2022 at 09:58:25AM +0200, Sergei Shtepa wrote: > There was a goal to use the kernel innovations whenever possible. > Of course, it makes sense to return to bio based if it allows to > achieve better performance. This is not a matter of principle. In general blk-mq is designed for hardware drivers, while the bio based interface is for stacking drivers. There are some exceptions: dm-mpath is a stacking blk-mq driver, but one that just passes I/O through, and there is a bunch of hardware drivers implemented as bio based ones, although I suspect most of them would end up being improved by switching to blk-mq (or in most case by just deleting them).