* GPL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved
+ * Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*/
/*
at->at_flags = flags;
cfs_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);