summaryrefslogtreecommitdiff
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-02-14 19:33:05 +0100
committerJens Axboe <axboe@kernel.dk>2023-02-14 14:24:09 -0700
commitb4e94f9c2c0822265a6942741d270aa16d229331 (patch)
treee7bd8be4c47cdb4e3608e3c50542653937d0cdbf /block/blk-throttle.c
parent1231039db31cf0703996d0b1797c2702e25a110a (diff)
Revert "blk-cgroup: delay calling blkcg_exit_disk until disk_release"
This reverts commit c43332fe028c252a2a28e46be70a530f64fc3c9d as it is not needed without moving to disk references in the blkg. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20230214183308.1658775-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-throttle.c')
-rw-r--r--block/blk-throttle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 21c8d5e871ea..74bb1e753ea0 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -2407,8 +2407,7 @@ void blk_throtl_exit(struct gendisk *disk)
{
struct request_queue *q = disk->queue;
- if (!q->td)
- return;
+ BUG_ON(!q->td);
del_timer_sync(&q->td->service_queue.pending_timer);
throtl_shutdown_wq(q);
blkcg_deactivate_policy(disk, &blkcg_policy_throtl);