Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4568436pxj; Wed, 12 May 2021 08:21:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZjDk0d1L79HNLcfhlpbypc2Ip3B++R/AnWR71GlWvPwb6MpWML7MUGZdWzt0u8QLeL8VY X-Received: by 2002:a17:906:63d2:: with SMTP id u18mr38473194ejk.186.1620832904026; Wed, 12 May 2021 08:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620832903; cv=none; d=google.com; s=arc-20160816; b=S9Eq9HP/tMdd2+6NNwIuYL0QBXyndqux/7BzPW5RPM3BwENicQsJBZvhxlChad0C/K qQPVbvpttb54NAwAi/2lYfIvsxkFETNcSERIskJ1y3uOCtShtAjNi28yLG+kFE2nu1Tg BNkM2cyiYKgx7NVj/SnBPrqCzn+jmHZkW/bjPhmSo6Icz/R4QaKHseeBWobWeqYZpiJq ffjxvxeua3cI2QEK4WUz0VjqW3LX13+E7kVJuLHlSS2JoAxKsKM9Thozh/h1GeGvTs/x 95HqrOe9i3Kvgv74fe/Fbg3yjbdsTRTAC9cbl0yQzPJDW9IBhsIlM9PyrN7BcHkp5FU3 4ztg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=0wJPBBkyRPc/VIoTojKlHxESD5f7mrYIC5Mf7EBqGEg=; b=IuGpPyT8+wI1Z8IPMn89nv6qyHcoWoU2FbuDuOUG4FcQoW/+UPd8uiJS6giWpX+9ZI MAuOx7sK7yW49PHXvaxHiarlMw/XxkTZ6ikvB9fPcp1qHAbvoOsEtyuIx6nkyugvLWcd l8upvSsSr/Swux255tsl2LPcxyClZ9twnIcPL1h88vaRXqP6xdqwEbBJhC7fSqim93Ji H+gPX2APMDNli5B5N6wDX9bcOEpuNMlMG52sMZYuieUWiVA5zg/DiiOqUrq8kDCIWEQn W1Xy/GKVJNe0v4KkL+aeZny8kQnriaTrX24V8ami/iges3NMKqjWgYESIcWAtvkEXnRx xq3A== 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 z8si246523ejw.0.2021.05.12.08.21.19; Wed, 12 May 2021 08:21:43 -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 S234676AbhELPUW (ORCPT + 99 others); Wed, 12 May 2021 11:20:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:36438 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233460AbhELPJa (ORCPT ); Wed, 12 May 2021 11:09:30 -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 F2158B11D; Wed, 12 May 2021 15:08:20 +0000 (UTC) Subject: Re: [PATCH v1 2/8] block: move disk announce work from register_disk() to a helper To: Luis Chamberlain , axboe@kernel.dk Cc: bvanassche@acm.org, ming.lei@redhat.com, hch@infradead.org, jack@suse.cz, osandov@fb.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210512064629.13899-1-mcgrof@kernel.org> <20210512064629.13899-3-mcgrof@kernel.org> From: Hannes Reinecke Message-ID: Date: Wed, 12 May 2021 17:08:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210512064629.13899-3-mcgrof@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/12/21 8:46 AM, Luis Chamberlain wrote: > This moves quite a bit of code which does one thing into a helper. > We currently do not check for errors but we may decide that might > be desirable later. > > This also makes the code easier to read. > > This change has no functional changes. > > Signed-off-by: Luis Chamberlain > --- > block/genhd.c | 14 ++++++++++---- > 1 file changed, 10 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