Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1200591pxk; Fri, 4 Sep 2020 03:28:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxM7TlMGKl8PZtZP1pKnqY3CP8yPpa8f4w5iJGzs36SUBApyhImlC1XsXvrVgxZ4fqjVDa0 X-Received: by 2002:a17:906:c059:: with SMTP id bm25mr6555821ejb.192.1599215320190; 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=HjquD/wMYQXHI/BoOTp4dUT1IOMSksAD3ZeZtuFW72YNo4tsRyCewsJL1wvBS/sRIG aqILtKasOGkM7B/9Ob0SGJdLANr1DWfQPTgVt3yueUz47fxEL0hBWKh03yTfswo6fbnP SjiLK7q18Iv9e0lvRBxhgGARW4tUCCRAblcFr32fbM1XeMZxIc4ZdPT6rK/NOPZk9xdF WIf68m8Es6RZb5GpRXdTlm/FRYszcbn4asbEPDFoS4sLOMEnAnu53Gxoom3mu/rDuz9c kyiebHbZMRacUme0htV6dwz6CqEPlv19tV56R6p3TCFFUEKT5VSoQfK3m8/qnFRVXzi7 gExg== 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=AsuiahGOAsqVCTdPZtPqGjKUqcVZwpLVTX+6WU9JAqY=; b=cgKTfwxJl54HEUf4i5HJeJugR9FRlvgipnPIsAczWnvNXNQEG+ES3MpyYPWMA3djKa pUZhnE/0u/wVSIJXN+A/wN0cpzeJ0zHFOqRzvEXbrwIZm59ktjao7lLdYsF82Cyt1hEU Vy5NZLZAfPsJ5OcLa+hG0yUtCqzI1Gx81u7XpcyULOis6u28WTjnzlwiFf/vSW3la3FW HBMiAWu66yDQp/HGA2emcJm1tXd0YAJFAB8tI6/yiVxrStfcUwkRY8s4NAmtj2mN6Cai Z2QcRf9IuW2KRUdR1dTRIT7NixeA8uXc/IsgtoWaFr593tJiq/jiWmKjFuSQVtV2rStg nuuw== 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 p23si3797619ejw.12.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 S1730129AbgIDKYo (ORCPT + 99 others); Fri, 4 Sep 2020 06:24:44 -0400 Received: from mx2.suse.de ([195.135.220.15]:40370 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730101AbgIDKY2 (ORCPT ); Fri, 4 Sep 2020 06:24:28 -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 3B43FB7E7; Fri, 4 Sep 2020 10:24:27 +0000 (UTC) Subject: Re: [PATCH 11/19] loop: 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-12-hch@lst.de> From: Hannes Reinecke Message-ID: Date: Fri, 4 Sep 2020 12:24:23 +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-12-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 > when a currently unregistered minor is accessed. > > Signed-off-by: Christoph Hellwig > --- > drivers/block/loop.c | 30 ++++++++---------------------- > 1 file changed, 8 insertions(+), 22 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