Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4573994pxj; Wed, 12 May 2021 08:28:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx5Wo+trwvq1CECap119VimybyQhTO44ZeLYmTq/iqsH8GDc4RstcBk20Sy864lgAmfrEJ X-Received: by 2002:a2e:9a06:: with SMTP id o6mr12659799lji.198.1620833327255; Wed, 12 May 2021 08:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620833327; cv=none; d=google.com; s=arc-20160816; b=D2ynyZB6SctyBsO22eXzVfPlRIYJlYiZRWDru4omoSZtpQGT1aIoxZ6TH8QWq1LV5q ChqeA8ivbHJ0biVp+XJhlZUn/GuvrjV0EBVnoRUOqdhaKFdnHmK+wP+z6U9ZeDsUIs8x TcaA3p9tyus7OOIQ4nU6Mn2lx68xjQD1e6bELI1iptZKSzMo0Ee9nZxDneSuox1XSzUG J449f4C5Ne9iUlQt/Wfy854ahGXzxmdugz1EYy21hpX2TrwDl+3DgmmTGyFWiRgAuG6j QbDCy9QrbKqEFyuWDVYFHls35ljiN7VtBQj7OvOtfFCDVBJB58Cq40yeRghUjYoycXCe VADw== 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=L7iAxU/ytrjm6O6QxWL7hmG1ogoJlBeoP6FjsPrrSNM=; b=mnNJZo2PqAr0EhsJ0Il6Phxr5D6xFUBYbRzKQjxNH2TcHJBkhonsmSte4dOcrnMNFl C1AONGLhXEeCxy2XotPoKPIwyM+KpCr5faNnkXZMkqyLnpoJyzNapVmdJaD12IMGV8rs 1dRUv7nGg/Gpc91tECjz6WZlJ+2BfOTMGQNmYDFPwuxaLSkyp95Sxij33I4uME5ofL5Q xXodJqrYn/9xhpUIFXlWMgdqCFp2Gl8SZ+MzIb3jhciS61GD9s5823ZH80TuHxmrbnJR re/9dojgvOZ9zdqb+HQBMe3Q+doRdQzA2io214N/UTAfnSQUCi1SpC8LsR1MHiPhfYxj 2PxQ== 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 q23si53485ljg.388.2021.05.12.08.28.17; Wed, 12 May 2021 08:28:47 -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 S232021AbhELPWH (ORCPT + 99 others); Wed, 12 May 2021 11:22:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:37062 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232509AbhELPKN (ORCPT ); Wed, 12 May 2021 11:10:13 -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 AF563B172; Wed, 12 May 2021 15:09:03 +0000 (UTC) Subject: Re: [PATCH v1 3/8] block: move disk invalidation from del_gendisk() into 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-4-mcgrof@kernel.org> From: Hannes Reinecke Message-ID: Date: Wed, 12 May 2021 17:09:02 +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-4-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: > Move the disk / partition invalidation into a helper. This will make > reading del_gendisk easier to read, in preparation for adding support > to add error handling later on register_disk() and to later share more > code with del_gendisk. > > This change has no functional changes. > > Signed-off-by: Luis Chamberlain > --- > block/genhd.c | 48 ++++++++++++++++++++++++++---------------------- > 1 file changed, 26 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