Ming Lei 37e11c3616 block: call blk_exit_queue() before freeing q->stats
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.

Fixes: 68497092bde9 ("block: make queue stat accounting a reference")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20211221040436.1333880-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-12-20 21:07:51 -07:00
..
2021-12-13 11:29:16 -07:00
2021-11-29 06:41:29 -07:00
2021-08-18 07:21:12 -06:00
2021-06-17 15:51:20 +02:00
2021-12-06 13:18:47 -07:00
2020-03-17 20:55:21 +01:00
2021-09-14 00:22:15 -04:00
2021-10-18 06:17:01 -06:00
2021-11-29 06:34:50 -07:00