From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14800C388F9 for ; Fri, 23 Oct 2020 11:13:05 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7C13421D43 for ; Fri, 23 Oct 2020 11:13:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Ie9QJ2wq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7C13421D43 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C042B6B0062; Fri, 23 Oct 2020 07:13:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BB42E6B0068; Fri, 23 Oct 2020 07:13:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A2C866B006C; Fri, 23 Oct 2020 07:13:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0232.hostedemail.com [216.40.44.232]) by kanga.kvack.org (Postfix) with ESMTP id 72BBE6B0062 for ; Fri, 23 Oct 2020 07:13:03 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 10E0D1EE6 for ; Fri, 23 Oct 2020 11:13:03 +0000 (UTC) X-FDA: 77402928246.24.mint81_04155e227259 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id E0D1D1A4A5 for ; Fri, 23 Oct 2020 11:13:02 +0000 (UTC) X-HE-Tag: mint81_04155e227259 X-Filterd-Recvd-Size: 3752 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf07.hostedemail.com (Postfix) with ESMTP for ; Fri, 23 Oct 2020 11:13:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=L5+0ZOmshEWGRjYQbZQfyKQ/jkbENBN4GZDIbl9am3E=; b=Ie9QJ2wqfW+8LSUdxH/tSg8hAa 8C2mIC2GrZ8PI1MXKvN9BsfRilt8jYdEkGxyFOfAVDvy6Td3hQ9uBq6ez/h9E2ABxawDSJiOLHdJI LsZGNhEw0cC/ka2DrAdzFFZOie+px6AWbWK1jzCBTuyNuGJIbDc7Ua0tb1SKyYrwGa4R7W5BG1jO8 lxiEoi4nFgMohtN2CS2nX2Xcq7PIeN+Dvq+4Kp4WllzbqLpZqVP7tQsfMfzuy3e8gjTCMhW6FI+3k 4bz8a/7pem0jnI9l+DNScgPNKZTBfOKlV0f3hYQ2enHlqjYNexs64ubBaoTEtoMg6kzVaSt0292L4 yhh0jICQ==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kVv09-0005sV-5b; Fri, 23 Oct 2020 11:12:53 +0000 Date: Fri, 23 Oct 2020 12:12:53 +0100 From: "hch@infradead.org" To: Hannes Reinecke Cc: "hch@infradead.org" , Mike Snitzer , "jack@suse.cz" , "gustavo@embeddedor.com" , "linux-mm@kvack.org" , device-mapper development , "pavel@ucw.cz" , "steve@sk2.org" , "osandov@fb.com" , Alasdair G Kergon , "bvanassche@acm.org" , "Darrick J. Wong" , "len.brown@intel.com" , "linux-pm@vger.kernel.org" , "ming.lei@redhat.com" , "linux-block@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "viro@zeniv.linux.org.uk" , Sergei Shtepa , "koct9i@gmail.com" , "axboe@kernel.dk" , Damien Le Moal , Johannes Thumshirn , "rjw@rjwysocki.net" , "linux-kernel@vger.kernel.org" , "linux-xfs@vger.kernel.org" , "tj@kernel.org" , "akpm@linux-foundation.org" Subject: Re: [dm-devel] [PATCH 0/2] block layer filter and block device snapshot module Message-ID: <20201023111253.GA22468@infradead.org> References: <71926887-5707-04a5-78a2-ffa2ee32bd68@suse.de> <20201021141044.GF20749@veeam.com> <20201022094402.GA21466@veeam.com> <20201022135213.GB21466@veeam.com> <20201022151418.GR9832@magnolia> <20201023091346.GA25115@infradead.org> 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 casper.infradead.org. See http://www.infradead.org/rpr.html X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, Oct 23, 2020 at 12:31:05PM +0200, Hannes Reinecke wrote: > My thoughts went more into the direction of hooking into ->submit_bio, > seeing that it's a NULL pointer for most (all?) block drivers. > > But sure, I'll check how the interposer approach would turn out. submit_bio is owned by the underlying device, and for a good reason stored in a const struct..