summaryrefslogtreecommitdiff
path: root/block/blk-ioprio.h
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2024-07-19 15:15:06 +0800
committerJens Axboe <axboe@kernel.dk>2024-07-28 16:47:51 -0600
commit79c6c60a6c1f5128b31ab80b7ac1c4d8255342ac (patch)
treeb8bef8b9ffeb07d84bfe0f8b8e7c36f9aa2556f5 /block/blk-ioprio.h
parentd0e92795997c8dce7ec804791e359a93211f9719 (diff)
blk-ioprio: remove per-disk structure
ioprio works on the blk-cgroup level, all disks in the same cgroup are the same, and the struct ioprio_blkg doesn't have anything in it. Hence register the policy is enough, because cpd_alloc/free_fn will be handled for each blk-cgroup, and there is no need to activate the policy for disk. Hence remove blk_ioprio_init/exit and ioprio_alloc/free_pd. Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: Tejun Heo <tj@kernel.org> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20240719071506.158075-4-yukuai1@huaweicloud.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-ioprio.h')
-rw-r--r--block/blk-ioprio.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/block/blk-ioprio.h b/block/blk-ioprio.h
index b6afb8e80de0..9265143f9bc9 100644
--- a/block/blk-ioprio.h
+++ b/block/blk-ioprio.h
@@ -9,17 +9,8 @@ struct request_queue;
struct bio;
#ifdef CONFIG_BLK_CGROUP_IOPRIO
-int blk_ioprio_init(struct gendisk *disk);
-void blk_ioprio_exit(struct gendisk *disk);
void blkcg_set_ioprio(struct bio *bio);
#else
-static inline int blk_ioprio_init(struct gendisk *disk)
-{
- return 0;
-}
-static inline void blk_ioprio_exit(struct gendisk *disk)
-{
-}
static inline void blkcg_set_ioprio(struct bio *bio)
{
}