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 <huangdezhi@hihonor.com> (cherry picked from commit 84984a8cb73c74c9194c82fb06428924a2d35218)
This commit is contained in:
committed by
Treehugger Robot
parent
5e61bf72ba
commit
20506e4af0
@@ -20,6 +20,7 @@
|
||||
#include <linux/blk-mq.h>
|
||||
#include <linux/llist.h>
|
||||
#include "blk.h"
|
||||
#include <linux/android_vendor.h>
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user