File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2407,8 +2407,7 @@ void blk_throtl_exit(struct gendisk *disk)
2407
2407
{
2408
2408
struct request_queue * q = disk -> queue ;
2409
2409
2410
- if (!q -> td )
2411
- return ;
2410
+ BUG_ON (!q -> td );
2412
2411
del_timer_sync (& q -> td -> service_queue .pending_timer );
2413
2412
throtl_shutdown_wq (q );
2414
2413
blkcg_deactivate_policy (disk , & blkcg_policy_throtl );
Original file line number Diff line number Diff line change @@ -668,6 +668,8 @@ void del_gendisk(struct gendisk *disk)
668
668
rq_qos_exit (q );
669
669
blk_mq_unquiesce_queue (q );
670
670
671
+ blkcg_exit_disk (disk );
672
+
671
673
/*
672
674
* If the disk does not own the queue, allow using passthrough requests
673
675
* again. Else leave the queue frozen to fail all I/O.
@@ -1164,8 +1166,6 @@ static void disk_release(struct device *dev)
1164
1166
might_sleep ();
1165
1167
WARN_ON_ONCE (disk_live (disk ));
1166
1168
1167
- blkcg_exit_disk (disk );
1168
-
1169
1169
/*
1170
1170
* To undo the all initialization from blk_mq_init_allocated_queue in
1171
1171
* case of a probe failure where add_disk is never called we have to
You can’t perform that action at this time.
0 commit comments