X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_nrs_tbf.h;h=04998c319a6b54631dce7b4242dfa8877e0b6038;hb=839360d35e27087e8266b02c5dd69e5e940577c5;hp=b36b5497efdf8e02b616ca168516121733ece515;hpb=d8278c699434fd7975609e121a1a75820595a601;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_nrs_tbf.h b/lustre/include/lustre_nrs_tbf.h index b36b549..04998c3 100644 --- a/lustre/include/lustre_nrs_tbf.h +++ b/lustre/include/lustre_nrs_tbf.h @@ -58,7 +58,9 @@ struct nrs_tbf_client { char tc_jobid[LUSTRE_JOBID_SIZE]; /** Reference number of the client. */ atomic_t tc_ref; - /** Likage to rule. */ + /** Lock to protect rule and linkage. */ + spinlock_t tc_rule_lock; + /** Linkage to rule. */ struct list_head tc_linkage; /** Pointer to rule. */ struct nrs_tbf_rule *tc_rule; @@ -115,6 +117,8 @@ struct nrs_tbf_rule { __u64 tr_nsecs; /** Token bucket depth. */ __u64 tr_depth; + /** Lock to protect the list of clients. */ + spinlock_t tr_rule_lock; /** List of client. */ struct list_head tr_cli_list; /** Flags of the rule. */