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 9B128ECAAA1 for ; Sun, 30 Oct 2022 15:31:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229441AbiJ3Pbv (ORCPT ); Sun, 30 Oct 2022 11:31:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbiJ3Pbu (ORCPT ); Sun, 30 Oct 2022 11:31:50 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79BFDAE69 for ; Sun, 30 Oct 2022 08:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=r9lOpqfssN28sQpin7zqVohVSYlRtAzGx3hN7KKKv9E=; b=sujq/9CKvZxD6g3eUoSr9GqH/u 3plgHeYfLxgV+bITtV2HJITS0mw691RNomdm3F60qMFLfMStQX9pClDGfK1CZ0VPhIdorsNO//nHl BESnxlrBaUjr/pcErGPyNzuRQpa5Tof4OanG8Si5pONJ/gzaoFQguMLJMm+iBMagzHnV/LJSJulaw /ToGEA3Xv+SaZu63kvlW1LU+nNdTJl8tOzAkRFCW1tgkhBlhrw3iwsKGXBNVZSa5YWSQJUv9lPLTy vXzXod4hNZNpJXl/XyJty3S3XN5jo6SqvQAj5/Amao8NVMoXZ0lwJebAvgPH9VATSeyoM/VGhAQmC 8bKSGbSw==; Received: from 213-225-37-80.nat.highway.a1.net ([213.225.37.80] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1opAHc-00HVfD-Gm; Sun, 30 Oct 2022 15:31:33 +0000 From: Christoph Hellwig To: Jens Axboe , Alasdair Kergon , Mike Snitzer Cc: Yu Kuai , dm-devel@redhat.com, linux-block@vger.kernel.org Subject: fix delayed holder tracking v2 Date: Sun, 30 Oct 2022 16:31:12 +0100 Message-Id: <20221030153120.1045101-1-hch@lst.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hi all, this series tries to fix the delayed holder tracking that is only used by dm by moving it into dm, where we can track the lifetimes much better. Changes since v1: - don't blow away ->bd_holder_dir in del_gendisk or add_disk failure as the holder unregistration references it - add an extra cleanup patch Diffstat: block/genhd.c | 6 -- block/holder.c | 85 ++++++++++------------------------ drivers/md/dm.c | 122 ++++++++++++++++++++++++++----------------------- include/linux/blkdev.h | 5 -- 4 files changed, 93 insertions(+), 125 deletions(-)