Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block/blk-throttle: drop unneeded blk_stat_enable_accounting

After the removal of CONFIG_BLK_DEV_THROTTLING_LOW, it is no longer
necessary to enable block accounting, so remove the call to
blk_stat_enable_accounting(). With that, the track_bio_latency variable
is no longer used and can be deleted from struct throtl_data. Also,
including blk-stat.h is no longer necessary.

Fixes: bf20ab538c81 ("blk-throttle: remove CONFIG_BLK_DEV_THROTTLING_LOW")
Cc: Yu Kuai <yukuai@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
Reviewed-by: Yu Kuai <yukuai@fnnas.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Guenter Roeck and committed by
Jens Axboe
20d0b359 f76581f9

-6
-6
block/blk-throttle.c
··· 12 12 #include <linux/blktrace_api.h> 13 13 #include "blk.h" 14 14 #include "blk-cgroup-rwstat.h" 15 - #include "blk-stat.h" 16 15 #include "blk-throttle.h" 17 16 18 17 /* Max dispatch from a group in 1 round */ ··· 42 43 43 44 /* Work for dispatching throttled bios */ 44 45 struct work_struct dispatch_work; 45 - 46 - bool track_bio_latency; 47 46 }; 48 47 49 48 static void throtl_pending_timer_fn(struct timer_list *t); ··· 1337 1340 } 1338 1341 1339 1342 td->throtl_slice = DFL_THROTL_SLICE; 1340 - td->track_bio_latency = !queue_is_mq(q); 1341 - if (!td->track_bio_latency) 1342 - blk_stat_enable_accounting(q); 1343 1343 1344 1344 out: 1345 1345 blk_mq_unquiesce_queue(disk->queue);