Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1196919pxk; Fri, 4 Sep 2020 03:21:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQDdxSCBflngyXqWVgCUnpQiHvsZ2M8cp9lBigRIBkXx/9OGQ8bpdCu3L1RdGxlkCdqKqI X-Received: by 2002:a17:906:52c2:: with SMTP id w2mr6816829ejn.389.1599214880088; Fri, 04 Sep 2020 03:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599214880; cv=none; d=google.com; s=arc-20160816; b=uHUtSxecNU1lJUG5pqgknWiic0qo50qPekbDX0d2P82h9br6ddrFmIa3HcPS2BVmHw UUYpHKSj1pzBpbhMp5VnQngNDYEqnZS6ylM+oLQX2LU7Mx0mRUPQ6cVM1/m7qDTzuC3/ kTdYbYgWWf4/BSWh5bwfr+n/lvQgM8FTrRcZ0Fo3eVG0HgB6VV7ey8r53+a1kzFcLGXo 206Uleo74OHScM79+dyemTxLHZw8Da3Q8S8x9t7ZRo3FBTiyC2REZGEVRdysc5XlGSpo 9vfYbYpOxmPFUzY6RngUwBhBflwVaoc/neXxh2h9wknPGpGWp7WwAGlgWbRJnHMc7AWs HUEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Ec8/RcWqTRHaWzXRbzV+BSj6aCNePL3Ga2zneRoDzaQ=; b=wjhrKAmnx9ZyOArR/h0bFrCK24Fw7rTnQ7mxMOgId2HCRQcWX99fLDlPFi3nQilQ7Z sMVGqtnkEV0/uFkjw6E5YRkKN0pRuwrF3J/7oH+UlE7SlEZebxeYhVDxf4sU81Y8+jSF YvSPIQZzVXQVLGPbnx9cKADvJICsiF7mZXtp6bGTkLxUcbfB6aAiKWm8SvR0WxH3KLj4 BtN5vL/pJcTu8osCU9PSpBtcVb3LI1uPZXuRiWn7Xhc6kS9sqJEaixzQGj7n6d5hD7lj hRbzpv93GTYcROvc2IREMS93lLLRSh8apaZxGbelCHNJlbbR+r3NYNnPjr9eFLi54AcQ 43Bg== 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 x20si2232106edv.305.2020.09.04.03.20.56; Fri, 04 Sep 2020 03:21:20 -0700 (PDT) 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 S1729977AbgIDKUU (ORCPT + 99 others); Fri, 4 Sep 2020 06:20:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:34258 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728658AbgIDKUR (ORCPT ); Fri, 4 Sep 2020 06:20:17 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 83E08B80C; Fri, 4 Sep 2020 10:20:16 +0000 (UTC) Subject: Re: [PATCH 05/19] block: rework requesting modules for unclaimed devices To: Christoph Hellwig , 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 References: <20200903080119.441674-1-hch@lst.de> <20200903080119.441674-6-hch@lst.de> From: Hannes Reinecke Message-ID: <74758a4b-10b7-ed02-c8bf-b795f748c8f5@suse.de> Date: Fri, 4 Sep 2020 12:20:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200903080119.441674-6-hch@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/3/20 10:01 AM, Christoph Hellwig wrote: > Instead of reusing the ranges in bdev_map, add a new helper that is > called if no ranges was found. This is a first step to unpeel and > eventually remove the complex ranges structure. > > Signed-off-by: Christoph Hellwig > --- > block/genhd.c | 25 +++++++++++++++---------- > 1 file changed, 15 insertions(+), 10 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer