Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1200590pxk; Fri, 4 Sep 2020 03:28:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx57jzJudAtT3YZbhmWGs76EvzgGaBdMWdIMwZFy3pEFYYf0ZuLKKflosaxovP0XYEn9QeH X-Received: by 2002:a50:fa88:: with SMTP id w8mr7770797edr.179.1599215320183; Fri, 04 Sep 2020 03:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599215320; cv=none; d=google.com; s=arc-20160816; b=Z6hSG7oAgRJXSJ4h5zFOcgOgl07YFvHFup4IbK8KzmzWQqq7EC18Lt2Y34SvLJkka/ jE7zqxjEQH3ob90wkky9s9XE+jmCKnx6nzgBp4nf8gDaVfOA6jS0/nzXG8SQv7TJZCky 2nbcv7LCRQ5vqUlaGfzCQkCxO8phdpqbGDeaJnRIG2ZrXcpb/rBj2YCs2Ajz84dQCSYq 2snULK7n2RVYIOnTixDcepdKCgD9jxkpPiKsvlNUry1hQpt7668isHWxNaGKVLchznWZ jpK4gxo8hxjMSMPQAxKpvOm2uwtooFStNKe81Idpt86R4HJqC08rJt2OEnTFsLyEO+as 8P5A== 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=YvhaeTpi7ekF8PNG91zfGkHJEkeoQL+Pu+llaLkqlgQ=; b=sS4AKRR13lMbTC43Wf/6IYprASNbiyjVHpltZtaKgAtnXnuLPaWpSTe/7ppFbB6NVj lEgGpp6vRX+vLXOXIO2W+aBZuSTpEPpsuRn0VlXrl+J3eoqPLGPxRnprlETfRLtPzb3i tfdkhyvYJ5YREYLXm6qBkan9DdAZNm338FbN3xYelN0EMbjYASAg6LekM1BYNuQOn3kb fJJCHFfPpJ19QYl1Xg2vwigkcxxehkqdeZe7ZngA5iOdrzQAtcrlduOhPfONDJItVbDW +MmRN6xKhackmFQC6XnThkaojXcAG3W+//HbGomASLtEb8FY/t7LoQNNhdzTUYIxVE0m +v4w== 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 b21si4344806ejz.77.2020.09.04.03.28.17; Fri, 04 Sep 2020 03:28:40 -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 S1730152AbgIDKZW (ORCPT + 99 others); Fri, 4 Sep 2020 06:25:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:41546 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729942AbgIDKZP (ORCPT ); Fri, 4 Sep 2020 06:25:15 -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 08FF7AF6D; Fri, 4 Sep 2020 10:25:15 +0000 (UTC) Subject: Re: [PATCH 12/19] md: use __register_blkdev to allocate devices on demand 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-13-hch@lst.de> From: Hannes Reinecke Message-ID: Date: Fri, 4 Sep 2020 12:25:12 +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-13-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: > Use the simpler mechanism attached to major_name to allocate a brd device md device? Maybe? > when a currently unregistered minor is accessed. > > Signed-off-by: Christoph Hellwig > Acked-by: Song Liu > --- > drivers/md/md.c | 21 ++++++++------------- > 1 file changed, 8 insertions(+), 13 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