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=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 2A9E4C4320A for ; Mon, 9 Aug 2021 06:42:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11D9161055 for ; Mon, 9 Aug 2021 06:42:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233329AbhHIGmu (ORCPT ); Mon, 9 Aug 2021 02:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233234AbhHIGmt (ORCPT ); Mon, 9 Aug 2021 02:42:49 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 639E3C0613CF; Sun, 8 Aug 2021 23:42:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=gu/wdO3pWcEV2DnoEvj5RVwNNwRwRD9cxQPKa/ARsu8=; b=mYVZtFcPQ4+E3YBX+sTHOUPIrO J2Bmm0o9TrUkEYjnnOoWqM+nxwMfA7G1aakmWt0bftItoCGMg7h/ssgKVMBDxZu/BaoylRTvgnMfR fhDTXTSYc2+kErta8SH6dFjBhtjzsz2cXsilz0MMeqHi3uGYO+oayBPgp5YykjqCIlc3zZByQpbvu VHTnwLHi1CnPz9ExfGgCWcpaHZFE7y4OUL2Jci7lYjTpjxrbObXMiJttFrqy0v0IyBeAxelCUxMir gQ4ZJE3NgEI13hQHqKPBSkPMooG9toraV08VDFjqLQXUTWMmjFfB3tsCA7oxWIDMHKaDieyXinM+4 a4TE0ONQ==; Received: from [2a02:1205:5023:1f80:c068:bd3d:78b3:7d37] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mCyxZ-00AiWj-9Y; Mon, 09 Aug 2021 06:40:57 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Coly Li , Song Liu , Ulf Hansson , Luis Chamberlain , linux-block@vger.kernel.org, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-mmc@vger.kernel.org, linux-nvme@lists.infradead.org Subject: remove GENHD_FL_UP Date: Mon, 9 Aug 2021 08:40:20 +0200 Message-Id: <20210809064028.1198327-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 casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-bcache@vger.kernel.org Hi Jens, this series first cleans up various drivers to not rely on the internal GENHD_FL_UP to decided if they need to call del_gendisk and then removes the flag entirely. Diffstat: block/genhd.c | 6 - block/partitions/core.c | 4 - drivers/block/sx8.c | 2 drivers/md/bcache/super.c | 26 ++++--- drivers/md/md.h | 4 - drivers/mmc/core/block.c | 143 +++++++++++++++++------------------------- drivers/nvme/host/core.c | 16 ++-- drivers/nvme/host/multipath.c | 2 fs/block_dev.c | 2 include/linux/genhd.h | 9 +- 10 files changed, 93 insertions(+), 121 deletions(-)