Whamcloud - gitweb
b=23352 modified value of at_min is not taken into account
authorZhang HongChao <hong-chao.zhang@oracle.com>
Mon, 24 Jan 2011 12:53:25 +0000 (13:53 +0100)
committerJohann Lombardi <johann.lombardi@oracle.com>
Mon, 24 Jan 2011 12:53:25 +0000 (13:53 +0100)
i=Johann
i=Eri Mei

lustre/ChangeLog
lustre/include/lustre_import.h

index 5744be9..4e74ea2 100644 (file)
@@ -77,6 +77,10 @@ Bugzilla   : 23988
 Description: kernel BUG at drivers/scsi/sd.c
 Details    : Remove sd iostats patch from sles11 patch series.
 
+Severity   : normal
+Bugzilla   : 23352
+Description: Modified value of at_min is not taken into account
+
 -------------------------------------------------------------------------------
 
 2010-10-29 Oracle, Inc.
index e5c71dc..2a67f87 100644 (file)
@@ -212,8 +212,9 @@ static inline void at_init(struct adaptive_timeout *at, int val, int flags) {
         at->at_flags = flags;
         spin_lock_init(&at->at_lock);
 }
+extern unsigned int at_min;
 static inline int at_get(struct adaptive_timeout *at) {
-        return at->at_current;
+        return (at->at_current > at_min) ? at->at_current : at_min;
 }
 int at_measured(struct adaptive_timeout *at, unsigned int val);
 int import_at_get_index(struct obd_import *imp, int portal);