block, bfq: release oom-queue ref to root group on exit
authorPaolo Valente <paolo.valente@linaro.org>
Tue, 9 Jan 2018 09:27:59 +0000 (10:27 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Jan 2018 15:45:25 +0000 (08:45 -0700)
commit0d52af590552473666da5b6111e7182d6cd23f92
treee83a75df643ef3dd663e2b260328888ce9220d36
parent52257ffbfcaf58d247b13fb148e27ed17c33e526
block, bfq: release oom-queue ref to root group on exit

On scheduler init, a reference to the root group, and a reference to
its corresponding blkg are taken for the oom queue. Yet these
references are not released on scheduler exit, which prevents these
objects from be freed. This commit adds the missing reference
releases.

Reported-by: Davide Ferrari <davideferrari8@gmail.com>
Tested-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c