On Wed, Jul 20, 2022 at 06:23:22PM +0800, Ming Lei wrote: > Even though alloc_disk and add_disk is paired here, GD_OWNS_QUEUE still > can't be set because request queue has to be workable for the new alloc/ > added disk, just like scsi. How so? dm has totally normall disk/request_queue lifetimes. The only caveat is that the blk-mq bits of the queue are added after the initial non-mq disk allocation. There is no newly added disk after the disk and queue are torn down.