Re: [PATCH 20/30] nullb: use blk_mq_alloc_disk

Christoph Hellwig
2021-06-08T05:39:14Z

On Thu, Jun 03, 2021 at 12:10:09AM +0000, Chaitanya Kulkarni wrote:
> > diff --git a/drivers/block/null_blk/main.c b/drivers/block/null_blk/main.c
> > index d8e098f1e5b5..74fb2ec63219 100644
> > --- a/drivers/block/null_blk/main.c
> > +++ b/drivers/block/null_blk/main.c
> > @@ -1851,13 +1851,12 @@ static int null_add_dev(struct nullb_device *dev)
> >
> > rv = -ENOMEM;
>
> Is above initialization needed ?

It isn't strictly required any more.