From 81257e4948caa5721d16b0bb73f2b62060a75836 Mon Sep 17 00:00:00 2001 From: adilger Date: Wed, 11 May 2005 22:04:03 +0000 Subject: [PATCH] Branch b1_4 Ensure the PING_INTERVAL is at least 1s, otherwise obd_timeout < 4 can cause severe heartburn. --- lustre/include/linux/obd_support.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/include/linux/obd_support.h b/lustre/include/linux/obd_support.h index 9bb7058..afb43ac 100644 --- a/lustre/include/linux/obd_support.h +++ b/lustre/include/linux/obd_support.h @@ -38,7 +38,7 @@ extern int obd_memmax; extern unsigned int obd_fail_loc; extern unsigned int obd_dump_on_timeout; extern unsigned int obd_timeout; /* seconds */ -#define PING_INTERVAL (obd_timeout / 4) +#define PING_INTERVAL max(obd_timeout / 4, 1U) extern unsigned int ldlm_timeout; extern char obd_lustre_upcall[128]; extern unsigned int obd_sync_filter; -- 1.8.3.1