From 20506e4af0e871635352f1cea29fd59528da4fce Mon Sep 17 00:00:00 2001 From: Dezhi Huang Date: Tue, 30 Apr 2024 11:50:26 +0800 Subject: [PATCH] ANDROID: Block: Add OEM data to struct blkcg and struct blkcg_gq Add ANDROID_OEM_DATA to struct blkcg and struct blkcg_gq, which is used to implement OEM's blkcg weight. TEach system task has different importance and priority. Generally, foreground applications and VIP applications require more I/O bandwidth and lower I/O latency. Therefore, it is necessary to add OEM-defined weights in blkcg to quickly process high-priority tasks. Bug: 337973184 Change-Id: Idd6286235a9ff99feef746d713e09ce2093fa904 Signed-off-by: Dezhi Huang (cherry picked from commit 84984a8cb73c74c9194c82fb06428924a2d35218) --- block/blk-cgroup.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index b9e3265c1eb3..b19e799d6599 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h @@ -20,6 +20,7 @@ #include #include #include "blk.h" +#include struct blkcg_gq; struct blkg_policy_data; @@ -89,6 +90,8 @@ struct blkcg_gq { int last_use; struct rcu_head rcu_head; + + ANDROID_OEM_DATA(1); }; struct blkcg { @@ -117,6 +120,8 @@ struct blkcg { #ifdef CONFIG_CGROUP_WRITEBACK struct list_head cgwb_list; #endif + + ANDROID_OEM_DATA(1); }; static inline struct blkcg *css_to_blkcg(struct cgroup_subsys_state *css)