On Mon, Nov 25, 2024 at 02:58:55PM -0800, Bart Van Assche wrote: > All ongoing I/O requests should have completed before elevator_exit() is > called. del_gendisk() calls __blk_freeze_queue_start() indirectly before > it calls elevator_exit() but it doesn't wait for the queue freeze > operation to complete. Isn't that a bug in del_gendisk()? It does. This should be fixed by: https://lore.kernel.org/linux-block/20241126102136.619067-1-hch@xxxxxx/T/#u