On Tue, 26 Oct 2021 18:12:04 +0800, Ming Lei wrote: > Before removing disk from sysfs, userspace still may change queue via > sysfs, such as switching elevator or setting wbt latency, both may > reinitialize wbt, then the warning in blk_free_queue_stats() will be > triggered since rq_qos_exit() is moved to del_gendisk(). > > Fixes the issue by moving draining queue & tearing down after disk is > removed from sysfs, at that time no one can come into queue's > store()/show(). > > [...] Applied, thanks! [1/1] block: drain queue after disk is removed from sysfs commit: d308ae0d299a6bb15be4efb91849582d19c23213 Best regards, -- Jens Axboe