miss the recovery window */
#define CONNECTION_SWITCH_MAX min(50U, max(CONNECTION_SWITCH_MIN,obd_timeout))
#define CONNECTION_SWITCH_INC 5 /* Connection timeout backoff */
-#ifndef CRAY_XT3
/* In general this should be low to have quick detection of a system
running on a backup server. (If it's too low, import_select_connection
will increase the timeout anyhow.) */
#define INITIAL_CONNECT_TIMEOUT max(CONNECTION_SWITCH_MIN,obd_timeout/20)
-#else
-/* ...but for very large systems (e.g. CRAY) we need to keep the initial
- connect t.o. high (bz 10803), because they will nearly ALWAYS be doing the
- connects for the first time (clients "reboot" after every process, so no
- chance to generate adaptive timeout data. */
-#define INITIAL_CONNECT_TIMEOUT max(CONNECTION_SWITCH_MIN,obd_timeout/2)
-#endif
/* The max delay between connects is SWITCH_MAX + SWITCH_INC + INITIAL */
#define RECONNECT_DELAY_MAX (CONNECTION_SWITCH_MAX + CONNECTION_SWITCH_INC + \
INITIAL_CONNECT_TIMEOUT)
#include "../lutil.h"
-
-#ifdef CRAY_XT3
-int _sysio_lustre_init(void)
-{
- /*
- * This is an aweful HACK. Basically the problem is on
- * Catamount, the build system links in liblustre.a to
- * all the test executables, and at this point its not
- * clear how to modify the build system to prevent this
- * from happening. So providing our own call to
- * _sysio_lustre_init() that does nothing, prevents
- * liblustre.a from initializing.
- *
- * Why is liblustre.a initializing a problem anyway. Well
- * this main() in this module calls init_obdclass(), as
- * well as the llite_lib.c's _sysio_lustre_init(). Two
- * calls to init_obdclass() cause an assertion. Secondly
- * it doesn't even logically make sense, this is module
- * does not need lustre file system functionality, it's
- * just the echo_tester.
- *
- */
- /*lprintf("--> THIS OVERRIDES liblustre.a INITIALIZATION <--\n");*/
- return 0;
-}
-#endif
-
-
-
extern int class_handle_ioctl(unsigned int cmd, unsigned long arg);
static int liblustre_ioctl(int dev_id, unsigned int opc, void *ptr)
# the value depends on configure options, and it is not stored in /proc.
# obd_support.h:
# #define CONNECTION_SWITCH_MIN 5U
-# #ifndef CRAY_XT3
# #define INITIAL_CONNECT_TIMEOUT max(CONNECTION_SWITCH_MIN,obd_timeout/20)
-# #else
-# #define INITIAL_CONNECT_TIMEOUT max(CONNECTION_SWITCH_MIN,obd_timeout/2)
request_timeout () {
local facet=$1