On Tue, 21 Dec 2021 12:04:36 +0800, Ming Lei wrote: > blk_stat_disable_accounting() is added in commit 68497092bde9 > ("block: make queue stat accounting a reference"), and called in > kyber_exit_sched(). > > So we have to free q->stats after elevator is unloaded from > blk_exit_queue() in blk_release_queue(). Otherwise kernel panic > is caused. > > [...] Applied, thanks! [1/1] block: call blk_exit_queue() before freeing q->stats commit: 37e11c3616f6182b6bd7f95a04df035b43464f39 Best regards, -- Jens Axboe