On Wed, May 07, 2025 at 08:04:03PM +0800, Ming Lei wrote: > elevator_set_none() is called when deleting disk, in which queue has been > un-registered, and elevator switch can't happen any more. > > So if q->elevator is NULL, it is not necessary to freeze queue and drain > IO any more. Yes. Also if the disk owns the queue there can't be any more I/O per definition, so maybe check for that as well?