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.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,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 A8855C63777 for ; Thu, 26 Nov 2020 13:06:55 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 116B221D46 for ; Thu, 26 Nov 2020 13:06:54 +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="jDdN7hAO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 116B221D46 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3D3356B0072; Thu, 26 Nov 2020 08:06:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 386476B0073; Thu, 26 Nov 2020 08:06:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 277B36B0074; Thu, 26 Nov 2020 08:06:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0126.hostedemail.com [216.40.44.126]) by kanga.kvack.org (Postfix) with ESMTP id 053B96B0072 for ; Thu, 26 Nov 2020 08:06:54 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id C43531EE6 for ; Thu, 26 Nov 2020 13:06:53 +0000 (UTC) X-FDA: 77526594306.12.woman53_01123ea2737f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id A689A18006FDB for ; Thu, 26 Nov 2020 13:06:53 +0000 (UTC) X-HE-Tag: woman53_01123ea2737f X-Filterd-Recvd-Size: 3683 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf37.hostedemail.com (Postfix) with ESMTP for ; Thu, 26 Nov 2020 13:06:53 +0000 (UTC) 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=0Gv0fe8by51pBpJ9y/s+Bsc/pkGppT00OZEyWHEsCkc=; b=jDdN7hAOVm64LI4GLxtV8Xg4mQ Jhk3sYSO6NihDo6ErowuZ0lfW/FXxua0lGjFFXZ7hTshuIG02Qgh+ZtMvse28KRgXFa6YwznZ+zRM 3SxJO9yOYalt/DOk9qnsxGmaq7Mm9pzMjycc3T8ZVi1jmSl4nMDZlkZJE3sN2+dyKPgpDMwt3zqvb SLuGPt5RBvuzIbdy43KrQgJ8FQup0kday2ag+tEAKT+U9PvPIbgh9dCIaX43s80gP5kUo5vBfWj55 /k2Iy70DlOmB3z37Z9eoOo/XoZR8yNFXm3CeZynj7ahBX+ghuAT/JfcmZJ2vsfJVhk0COVF7tTO+/ LxGu4YBQ==; Received: from 089144198196.atnat0007.highway.a1.net ([89.144.198.196] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kiGyo-0003va-9E; Thu, 26 Nov 2020 13:06:35 +0000 From: Christoph Hellwig To: Jens Axboe Cc: Tejun Heo , Josef Bacik , Coly Li , Mike Snitzer , Greg Kroah-Hartman , Jan Kara , Johannes Thumshirn , dm-devel@redhat.com, Jan Kara , linux-block@vger.kernel.org, linux-bcache@vger.kernel.org, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Subject: merge struct block_device and struct hd_struct v3 Date: Thu, 26 Nov 2020 14:03:38 +0100 Message-Id: <20201126130422.92945-1-hch@lst.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Content-Transfer-Encoding: quoted-printable 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: Hi Jens, this series cleans up our main per-device node data structure by merging the block_device and hd_struct data structures that have the same scope, but different life times. The main effect (besides removing lots of code) is that instead of having two device sizes that need complex synchronization there is just one now. Note that this now includes the previous "misc cleanups" series as I had to fix up a thing in there with the changed patch ordering. The first patch already is in 5.10-rc, but not in for-5.11/block A git tree is available here: git://git.infradead.org/users/hch/block.git bdev-lookup Gitweb: http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/bdev= -lookup Changes since v2: - keep a reference to the whole device bdev from each partition bdev to simplify blkdev_get - drop a stale commen in freeze_bdev - fix an incorrect hunk that ignored error in thaw_bdev - add back a missing call to mapping_set_gfp_mask - misc typo fixes, comment and commit log improvements - keep using a global lock to synchronize gendisk lookup - do not call ->open for blk-cgroup configuration updates - drop a zram cleanup patch Changes since v1: - spelling fixes - fix error unwinding in __alloc_disk_node - use bdev_is_partition in a few more places - don't send the RESIZE=3D1 uevent for hidden gendisks - rename __bdget_disk to disk_find_part - drop a bcache patch - some patch reordering - add more refactoring - use rcu protection to prevent racing with a disk going away in blkdev_get - split up some of the big patches into many small ones - clean up the freeze_bdev interface