Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 37e11c36 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

block: call blk_exit_queue() before freeing q->stats

blk_stat_disable_accounting() is added in commit 68497092
("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: 68497092

 ("block: make queue stat accounting a reference")
Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20211221040436.1333880-1-ming.lei@redhat.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a957b612
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment