Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp165834pxb; Wed, 11 Nov 2020 00:00:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLGQ+wxtyRUDbRudHlDAUSTtpHIShaH/EyNZr8JUWC9hC7hNClOMBqR6irMfB9fpUN4AUR X-Received: by 2002:aa7:cc14:: with SMTP id q20mr3548680edt.242.1605081611530; Wed, 11 Nov 2020 00:00:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605081611; cv=none; d=google.com; s=arc-20160816; b=Yt1S5hP4+qAg3MYeYwD23HO6IzcByffFZ2uHLJZN93689WQzCI48xhoj/ftUGV1vF4 CjhD52h/thdNGgFMmAHCzT85qMSuAy1Y4YorNz/Voyn16OPTEYwV+kHW2PKDjU73PH8e XLcwvEZj8tHMNfrO+0Twrn9HYv/1LOgJXENi8ihYgy/RuafJmZcUeC7euFqupMUJSaCq 4RT5+p4DnywlbYMQNJHq+1NmeLDsy96Spv01kFlG3API7kuy1OQAVD3MzQ3XmjJrREYY jFo1gLnKf6Bg6zFDIk5XbRy8bXAlozsSYMLq8MJ54keapLeZOTjGNubAORyh11kWbo4R RJyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=oAOwiFCQA/Orh3SAjBt35rFjrFRYCTN9ZXgEfHonk3o=; b=ZNB8H0P6gGYZ5tsihIsBnybthRbOjmBtztavWB4YekOCk/3akYC+tU5qjq1/p01/HT cer62OJk2NZQ+3TJJRD1lKLlxXsekDqhInyy0dUNMKRH3m+3p8L6dsvgUDAbTZeJCgEw Yr9AMEsfScBKcW2Icyp1Xq/msfC4Fnfkmw8Ekwh/IQVMBreN0On22OI4znpRc5d5WS3G W3VLLKSBSvuaHmqq1PKXmUTo/+IfdKjsuDVMqt6tCmpuOI/u2yLWXphxrlcOaVl3by3+ 7hSk7x4rJsB+MCKbpozRGQLFZEr8k7HTMWP93EWtBvGZgS55lpZx3M+jbG977xAx45sh 2K4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si741105eje.696.2020.11.10.23.59.47; Wed, 11 Nov 2020 00:00:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726231AbgKKH6A (ORCPT + 99 others); Wed, 11 Nov 2020 02:58:00 -0500 Received: from verein.lst.de ([213.95.11.211]:39089 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726091AbgKKH56 (ORCPT ); Wed, 11 Nov 2020 02:57:58 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id A53F767373; Wed, 11 Nov 2020 08:57:54 +0100 (CET) Date: Wed, 11 Nov 2020 08:57:54 +0100 From: Christoph Hellwig To: Jens Axboe Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Denis Efremov , "David S. Miller" , Song Liu , Al Viro , Finn Thain , Michael Schmitz , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-raid@vger.kernel.org, linux-scsi@vger.kernel.org, linux-m68k@lists.linux-m68k.org Subject: Re: simplify gendisk lookup and remove struct block_device aliases v4 Message-ID: <20201111075754.GA23010@lst.de> References: <20201029145841.144173-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201029145841.144173-1-hch@lst.de> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jens, can you take a look and possibly pick this series up? On Thu, Oct 29, 2020 at 03:58:23PM +0100, Christoph Hellwig wrote: > Hi all, > > this series removes the annoying struct block_device aliases, which can > happen for a bunch of old floppy drivers (and z2ram). In that case > multiple struct block device instances for different dev_t's can point > to the same gendisk, without being partitions. The cause for that > is the probe/get callback registered through blk_register_regions. > > This series removes blk_register_region entirely, splitting it it into > a simple xarray lookup of registered gendisks, and a probe callback > stored in the major_names array that can be used for modprobe overrides > or creating devices on demands when no gendisk is found. The old > remapping is gone entirely, and instead the 4 remaining drivers just > register a gendisk for each operating mode. In case of the two drivers > that have lots of aliases that is done on-demand using the new probe > callback, while for the other two I simply register all at probe time > to keep things simple. > > Note that the m68k drivers are compile tested only. > > Changes since v3: > - keep kobj_map for char dev lookup for now, as the testbot found > some very strange and unexplained regressions, so I'll get back to > this later separately > - fix a commit message typo > > Changes since v2: > - fix a wrong variable passed to ERR_PTR in the floppy driver > - slightly adjust the del_gendisk cleanups to prepare for the next > series touching this area > > Changes since v1: > - add back a missing kobject_put in the cdev code > - improve the xarray delete loops ---end quoted text---