Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1223988ybh; Thu, 16 Jul 2020 06:39:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQELTj9DSSdqVUqYek5LyfcDfz7t+KftUekJZvbtgZfnb25VPI8aZaRQd6N38I5ttuoL1g X-Received: by 2002:a17:906:f202:: with SMTP id gt2mr3753171ejb.70.1594906770325; Thu, 16 Jul 2020 06:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594906770; cv=none; d=google.com; s=arc-20160816; b=bZBUq4DDkL6ryKOhVujlGwkOWyw4Q6FSkC7woiS1nnTF5i0warPoD3dlVH9w9Bsiyy YXcjgDHBtWNuaiR+Pz12w6Swut8Jv2IbWjXxG2qD/LWpnr54kNA033Sa4hla1jeXFiB5 +Q+xLmQCQ/j4uuOnR7xmXxcvZY2YJ2XHHd1pNRuXS19ElKELUkjiAF3+OcxV0rmYgW8i FhBoDnF2voQ4d79/yiGJSA3Hq7kUZPxW3dKMJolm2pQ4pFwJW+ZK77IG2l1mkEFohUJf rfmIbTSNmho5PmZaodKn4r6jB66A3RLD8Aq2SSUtTp89UACrI1CtfuurvO5+JE0l38d9 uZXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MYWoIPyP5SOM7/XID0gQRCq5rrBwGnH7r+EA7s/J7W0=; b=hOfa+cFeetXDLrsv58+4cKbzlfiBTmwe4H/JY2rveCJtkvy0RL/tmJjy9CFYAQ/rrY sdgLvDN1f2DDnQiA4DuqEZpl5bhjKioHNeWrxNOPNX0A9A/Sw5cckXZkp3yLJxMGMGi6 WD8NnMUCbOLpYY55lCdH0g4z/022qUQEEe/eQHX3CZPt+vEoYUCse3l+FbWI96WDSUTv 4cF+38OVahC9U4huaHdTKuj/gwTqc9znx9RPzwCe5oJJfkdS69K5RCNUYYjSmPdainrr pg0t8fUCsUC5Brpr1p7wRnLerQ0/EKctac6xkLGoPVSY7hGwR2FHS0eihpPYoH2+UzCJ pnXQ== 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 g20si3164554edq.447.2020.07.16.06.39.07; Thu, 16 Jul 2020 06:39:30 -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 S1728690AbgGPNi5 (ORCPT + 99 others); Thu, 16 Jul 2020 09:38:57 -0400 Received: from verein.lst.de ([213.95.11.211]:34717 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728093AbgGPNi4 (ORCPT ); Thu, 16 Jul 2020 09:38:56 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id D936868BEB; Thu, 16 Jul 2020 15:38:53 +0200 (CEST) Date: Thu, 16 Jul 2020 15:38:53 +0200 From: Christoph Hellwig To: NeilBrown Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, "H. Peter Anvin" , Song Liu , Al Viro , Linus Torvalds , linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 09/23] md: rewrite md_setup_drive to avoid ioctls Message-ID: <20200716133853.GA18326@lst.de> References: <20200714190427.4332-1-hch@lst.de> <20200714190427.4332-10-hch@lst.de> <87365sxrqe.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87365sxrqe.fsf@notabene.neil.brown.name> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 16, 2020 at 09:50:49AM +1000, NeilBrown wrote: > I'd be more comfortable if you added something like > if (WARN(bdev->bd_disk->fops != md_fops, > "Opening block device %x resulted in non-md device\")) > return; > here. However even without that > > Reviewed-by: NeilBrown Ok, I've added that.