> > +static void destroy_gen_disk(struct ibnbd_clt_dev *dev)
> > +{
> > + del_gendisk(dev->gd);
>
> > + /*
> > + * Before marking queue as dying (blk_cleanup_queue() does that)
> > + * we have to be sure that everything in-flight has gone.
> > + * Blink with freeze/unfreeze.
> > + */
> > + blk_mq_freeze_queue(dev->queue);
> > + blk_mq_unfreeze_queue(dev->queue);
>
> Please remove the above seven lines. blk_cleanup_queue() calls
> blk_set_queue_dying() and the second call in blk_set_queue_dying() is
> blk_freeze_queue_start().
>
It was an old bug we had in 2016, we retested with newer kernel like
4.14+, the bug is fixed,
I will remove the above seven lines.
Thanks
Jinpu