blk-cgroup: hold the queue ref during throttling
authorJosef Bacik <josef@toxicpanda.com>
Tue, 31 Jul 2018 16:39:03 +0000 (12:39 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Aug 2018 15:16:03 +0000 (09:16 -0600)
commitcc7ecc258562b065ef638c4b45e20953d57fb564
treeede12ab4add1b486c0f34eb925cfca76853a4faa
parent52a1199ccd426ad583ade4eb678b3b5846c58f43
blk-cgroup: hold the queue ref during throttling

The blkg lifetime is protected by the queue lifetime, so we need to put
the queue _after_ we're done using the blkg.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c