Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp180584imw; Wed, 13 Jul 2022 22:30:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tvbL3jCk0n13Pvw7eVSPrUxW87b3mPtia8LQJ8yNBbJ5QnNPeg8IgjU7RjbeztIpqE9Hfo X-Received: by 2002:a17:902:ce05:b0:16c:2a1:c335 with SMTP id k5-20020a170902ce0500b0016c02a1c335mr6850376plg.5.1657776659462; Wed, 13 Jul 2022 22:30:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657776659; cv=none; d=google.com; s=arc-20160816; b=iffBlYmmZDCmaAUBci3RnLkse/fOqnwIS2QiDL+/yeEjXlvDdPST8YKeWtFgF3vvux SHb660fGGoja3YVKbFPRVY4iRQxzuY77AIBMz3MTQGjml5eR6LYsIkdK8X4CuoFYb3ud mZgESzdFzqjffIuwgMbkD8h3AxfdsnYNO6gIdRoT3j3patD3NMH3WyaSP7NWkaGFtvy6 /1bq20JFAscwmQx7VFW3gMuey9iS8z73sNT75yJcsVEitEJz1nNA3Vu6hwpRQzrn7sbV J4yHA3NoGs8ZlN1imeae8hSADpHeNLVmUh6zuGUJ0zFDfK59hbkrjdbMjQ/jw7EVZzrj gY1Q== 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=LO28MeHGd3VlejoddzjXnjPgM61v02soZCtoYcsp59o=; b=GRt705URbVXttddo3bktQh6hrClFDXNVByWaKEfxisFA+3De/UOvL2giy0UPBcqOD5 C6isoT18rMu+J1itBAbKApK4FH9LrGqP4zs8gID+Noh+hWKIMVGI5LQH2u/Wsh25uza8 XnxCjQDqfIQo7ar73+EArotCX3QYUlQZfeH8ULOhxPRhBywbnrvzuEcFWZmWrTsj89cI v04nHVKHKUdK33ClJw6IX2PVuIEhNd5ZMJhsyzrAagGRkaG0KXbQfyFJI9SCEsF9dAWP efSBUCO66rovjmX1S/BF5Xs/tOTjmGA1exBZQMbX6oz6OALOUqMdlGhcfX5kYbUCsaXS Vzig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=iiakchct; 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 q16-20020a63d610000000b0041160e45f31si760923pgg.97.2022.07.13.22.30.39; Wed, 13 Jul 2022 22:30:59 -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=iiakchct; 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 S232847AbiGNFMK (ORCPT + 99 others); Thu, 14 Jul 2022 01:12:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232501AbiGNFMI (ORCPT ); Thu, 14 Jul 2022 01:12:08 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47AF4DA4; Wed, 13 Jul 2022 22:12:05 -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=LO28MeHGd3VlejoddzjXnjPgM61v02soZCtoYcsp59o=; b=iiakchctaJplEbbHCV8rzevk1n /gKfepGRT2hdaskDC5Q17mTD4iBmWULLPGgmEAbtdwjLJDbbaPwoRRtq+34bA4ag72vdGYJAMptqK Ekw7KQw35EjZOaWdhgNaXO3YjaosRsmTd7sDTDzGq9MD4Ro0d1Zfyxc5sp1JT04a5Q+2t2TxH8hKp febvYHBD1wvAA4uc83+E9twcxFCy6wFrRqJSczLG1SH09LuagBKg+Ufw27gfkeQsf5C5Uh8kRHQzR zVOMqtbGqNw93ZdRI5mk/EmHycKvHqoavVZEucHMFXFoarLFKYlS77YAWiDM1ovcA2SIBwnJfk7LZ /pMC+ztQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBr8t-00Axwc-09; Thu, 14 Jul 2022 05:12:03 +0000 Date: Wed, 13 Jul 2022 22:12:02 -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 01/20] block, blk_filter: enable block device filters Message-ID: References: <1655135593-1900-1-git-send-email-sergei.shtepa@veeam.com> <1655135593-1900-2-git-send-email-sergei.shtepa@veeam.com> <51e3fc9e-5b46-ab23-bbf8-5d0ad9dada29@veeam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51e3fc9e-5b46-ab23-bbf8-5d0ad9dada29@veeam.com> 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 Wed, Jul 13, 2022 at 03:47:23PM +0200, Sergei Shtepa wrote: > >> 2. Can the filter sleep or postpone bio processing to the worker thread? > > I think all of te above is fine, just for normal submit_bio based > > drivers. > > Good. But I'm starting to think that for request-based block devices, > filtering should be different. I need to check it out. As long as you filter in the submit_bio stack you handle both submit_bio and request based (blk-mq) drivers. So I don't think we hould need to handle them any differently. > I have a lot of work to do to improve the patch. If you have any questions or want to get feedback on iterations not ready to post feel free to ask me offlist.