Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1197281pxk; Fri, 4 Sep 2020 03:22:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIRyattJJvTyOfyfyuwy4bW+CUsR3ti4GmwMFkgB4npOWF0yDmcEP+UV1F5hlnQ7pubIXH X-Received: by 2002:a17:906:1909:: with SMTP id a9mr6403236eje.127.1599214923750; Fri, 04 Sep 2020 03:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599214923; cv=none; d=google.com; s=arc-20160816; b=M8DODzSW2jmUZv1/Rhtq7taX6EyYjnAIC5GExXhPX7h/iaHgDb5ohqEGTq4TAoAZqG X4CU0ONMx8fPinn1Plcr3/SwSUT6XeXtNvpeg9kUGLI8G2WgRmEB/3XMlVgAIa3LIDDu WOSL38wkZTdcE9P1sc+HRZpZUg2pUhHoIHbSX+0PsZQ3RyrTCXQJhJwmSIDtJWD3G3LQ qOVDf4SXMNVqg2ue6w4m2N/iBG5Gqc+e4uzx7UmFJgp4K3xdCH3pBPONjj9swIzE93aU sRLK/LE+0Q12wFNhRZpbss6f9fjExmrVTdZg30IWr9PMGLGJPxIi7cZRqgXt0yMXLinR fXkg== 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=hs8Uz8pC6U6d5C1/aB23Hv3H5WnXHFL/iF90pZsN09g=; b=xVclG0o5qpfTtOVh7Pl8mz1M6xc+xWAvroN+076By+HdBwzzj2of44QwTC53SdaEbv 2m5/C7nNGzUm3y2XzwANKRwyptOXYNp6NM8U9MaYPiqDb67npVoOVT4kun92ULhNkRfc hLF+/xd/YJbAf1s4SkYx5ojD6oSwH1JKV9jFQnDSGolDBO/zxQ9LuGjSGTEVpemGDhqC sqmORP/0rklNP04v8kdHB+QWX/V7dFs1r8wtGwFP+SeVbSAKSzSlnBCo3pPDsgYEXevW /IDOkGVqm1POnjZ82mUlyTdlmQpMQKDWoBA2OSjj/gZswJzo+ZtScPpG+OOSKjkGQ9Fl begg== 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 t23si3596770ejf.457.2020.09.04.03.21.40; Fri, 04 Sep 2020 03:22:03 -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 S1730042AbgIDKVD (ORCPT + 99 others); Fri, 4 Sep 2020 06:21:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:36340 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729753AbgIDKVB (ORCPT ); Fri, 4 Sep 2020 06:21:01 -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 9883FAEBF; Fri, 4 Sep 2020 10:21:00 +0000 (UTC) Subject: Re: [PATCH 06/19] block: add an optional probe callback to major_names 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-7-hch@lst.de> From: Hannes Reinecke Message-ID: Date: Fri, 4 Sep 2020 12:20:56 +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-7-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: > Add a callback to the major_names array that allows a driver to override > how to probe for dev_t that doesn't currently have a gendisk registered. > This will help separating the lookup of the gendisk by dev_t vs probe > action for a not currently registered dev_t. > > Signed-off-by: Christoph Hellwig > --- > block/genhd.c | 21 ++++++++++++++++++--- > include/linux/genhd.h | 5 ++++- > 2 files changed, 22 insertions(+), 4 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