X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre_import.h;h=acb82fd9c3d5b6ad3df66c49925e4821f7cf97ca;hp=6511c3608e5bed23f81940e6f84b7b2195f05931;hb=f3f003b4095e1849b51a4fbd8d78e29749c6d569;hpb=a0374f85c815e48d645f9b720250efb45745d441 diff --git a/lustre/include/lustre_import.h b/lustre/include/lustre_import.h index 6511c36..acb82fd 100644 --- a/lustre/include/lustre_import.h +++ b/lustre/include/lustre_import.h @@ -336,9 +336,11 @@ static inline unsigned int at_timeout2est(unsigned int val) } static inline void at_reset(struct adaptive_timeout *at, int val) { + spin_lock(&at->at_lock); at->at_current = val; at->at_worst_ever = val; at->at_worst_time = cfs_time_current_sec(); + spin_unlock(&at->at_lock); } static inline void at_init(struct adaptive_timeout *at, int val, int flags) { memset(at, 0, sizeof(*at));