# Re: \[PATCH 09/23\] md: rewrite md\_setup\_drive to avoid ioctls

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2020-07-16 13:39:00 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2020/07/184452
- Thread: https://ratatoskr.run/linux-raid/2020/07/184240/t.md

```text
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 <redacted>

Ok, I've added that.
```
