From 378bbff8c5d6f82940d40051e8fb43cfc50ffdb7 Mon Sep 17 00:00:00 2001 From: tianzy Date: Mon, 17 Nov 2008 06:47:35 +0000 Subject: [PATCH] Branch b1_8_gate decay qos ost/oss penalties if MDS is not creating objects i=nathan i=johann --- lustre/include/obd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/include/obd.h b/lustre/include/obd.h index 399d4a9..d4b9eae 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -607,10 +607,11 @@ struct echo_client_obd { struct lov_qos_oss { struct obd_uuid lqo_uuid; /* ptlrpc's c_remote_uuid */ struct list_head lqo_oss_list; /* link to lov_qos */ - __u32 lqo_ost_count; /* number of osts on this oss */ __u64 lqo_bavail; /* total bytes avail on OSS */ __u64 lqo_penalty; /* current penalty */ __u64 lqo_penalty_per_obj; /* penalty decrease every obj*/ + time_t lqo_used; /* last used time, seconds */ + __u32 lqo_ost_count; /* number of osts on this oss */ }; struct ltd_qos { @@ -618,6 +619,7 @@ struct ltd_qos { __u64 ltq_penalty; /* current penalty */ __u64 ltq_penalty_per_obj; /* penalty decrease every obj*/ __u64 ltq_weight; /* net weighting */ + time_t ltq_used; /* last used time, seconds */ unsigned int ltq_usable:1; /* usable for striping */ }; -- 1.8.3.1