Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: call blk_exit_queue() before freeing q->stats
blk_stat_disable_accounting() is added in commit 6849709 ("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. Fixes: 6849709 ("block: make queue stat accounting a reference") Signed-off-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information